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