最佳答案:用一个双循环就行了~ 比如说: int a,b; for(a=1;a<=5;a++) {     for(b=1;b<=a;b++)     {     printf("