填空题
请补充main()函数,该函数的功能是:打印出满足个位的数字、十位上的数字和百位上的数字都相等的所有3位数。
本题的结果为:111 222 333 444 555 666 777 888 999。
注意:部分源程序给出如下。
请勿改动main()函数和其他函数中的任何内容,仅在main()函数的横线上填入所编写的若干表达式或语句。
试题程序:
#include<stdlib.h>
#include<stdio.h>
void main()
{
int a, b, c;
system("CLS");
for(a=1; a<10; a++)
for(b=1; b<10; b++)
for(c=1; c<10; c++)
{
if(
1)
printf("%5d",
2);
}
}