本人大一纯小白
以下是我写的
#include<stdio.h>
void main(){
for(int g=0;g<5;g++){
for(int b=0;b<=g;b++){
printf(" ");
}
printf("*****\n");
}
}
以下是运行结果:
*****
*****
*****
*****
*****
个人理解是嵌套的for语句是先运行行,
再运行到列的运行而且要注意转义字符的位置。
时间:23/12/13