|
5啊哈币
#include <stdlib.h>
int main()
{
int a,b;
a=1;
while(a<=5)
{
b=1;
while(b<=a)
{ b=b+1;
printf("%d",a);
}
printf("\n");
a=a+1;
}
system("pause");
return 0;
}
怎么把它变成
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
|
最佳答案
查看完整内容
[mw_shl_code=c,true]#include
int main()
{
int a,b,c;
c=1;
a=1;
while(a
|