填空题

下面程序是计算100以内能被4整除且个位数为4的所有整数,请填空。
main()
int m,n;
for(m=0;______;m++)
n=m*10+4;
if(______)Continue;
printf("%d\n",n);

【参考答案】

m<=100 n%4==0
<上一题 目录 下一题>
热门 试题

填空题
下面invert函数的功能是将一个字符串str的内容颠倒过来,请填空。 #include<string.h> void invert(char str[]) int i,j,______; for(i=0,j=strlen(str)______;i<j;i++,j--) k=str[i];str[i]=str[j];str[j]=k;
填空题
有以下程序: #include<stdio.h> main() int a=1,b=2,c=3,d=0; if(a==1) if(b1=2) if(c==3) d=1; else d=2; else if(c!=3) d=3; else d=4; else d=5; printf( %d n ,d); 程序运行后的输出结果是______。
相关试题
  • 以下程序的输出是______。 struct ...
  • 有如下程序: #include <stdio.h> m...
  • 为了使模块尽可能独立,要求______。
  • 若有如下程序段,其中s、a、b、c均已定义为...
  • 对两个数组a和b进行如下初始化: char a...