开发平台(Platform): (Ex: Win10, Linux, ...)
w10
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
devc++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
用for数字循环画三角型
可是超过一定的数字就不会写了
行数超过10就用星星取代
卡很久都跑不出来 初学者
喂入的资料(Input):
#include<stdio.h>
int main()
{
int i,j,k;
printf("输入行数 = ");
scanf("%d",&k);
for(i=1;i<=k;i++){
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
}
预期的正确结果(Expected Output):
1
22
333
4444
55555
666666
7777777
88888888
999999999
**********
错误结果(Wrong Output):
程式码(Code):(请善用置底文网页, 记得排版,禁止使用图档)
补充说明(Supplement):