填空题

以下程序的功能是:输出100以内(不含100)能被3整除且个位数为6的所有整数,请填空。
#include <stdio.h>
main()
int i,j
for(i=0; 【15】 ;i++)
j=i*10+6;
if( 【16】 )continue:
Printf("%d”",j);

【参考答案】

i<10或i<9 j%3! =0或j%3
<上一题 目录 下一题>
热门 试题

填空题
若变量a,b已定义为int类型并分别赋值21和55,要求用printf函数以a=21,b=55的形式输出,请写出完整的输出语句行: 【14】 。
填空题
有两个C程序文件T18.c和myfun.c同在VC系统目录(文件夹)下,其中T18.c文件如下: #include <stdio.h> #include myfun.c main( ) fun(); prinff( n ); myfun.c文件如下: void fun( ) char s[80],c;int n=0; while((c=getchar())! :’ n’) s[n++] =c; n--; while ( n>=0) prinff( %c , s [n--] ); 当编译连接通过后,运行程序T18时,输入 Thank!”,则输出结果是 【13】 。
相关试题
  • 以下程序中函数fun()的功能是构成一个如...
  • 当运行以下程序时,输入abcd,程序的输出结...
  • 以下程序用于判断a,b,c能否构成三角形,...