80-for嵌套循环222

# include <stdio.h>

int main (void)

{
    int i,j;
    
    for (i = 0; i < 3; ++i)
    {
        printf ("111\n");
        for (j = 2; j < 5; ++j)
        {
            printf("222\n");
            printf("333\n");
        }
        printf ("444\n");
    }

    return 0;
}

 

运行结果

 

 

111
222
333
222
333
222
333
444
111
222
333
222
333
222
333
444
111
222
333
222
333
222
333
444
Press any key to continue

posted @ 2020-02-28 21:24  坚韧的菜鸟  阅读(140)  评论(0)    收藏  举报