蓝盾保险箱演员金妹:问?!!!!!!!

来源:百度文库 编辑:中科新闻网 时间:2024/05/11 20:39:53
.编写程序打印以下图象(用循环结构)
1
23
456
7890

#include<stdio.h>
void main()
{
int i,j;
int t=0;
for(i=0;i<=4;i++)
{
for(j=0;j<i;j++)
{
t=t+1;
if(t>=10)
t=t-10;
printf("%d",t);
}
printf("\n");
}
}