题目内容

//下面程序的输出是【1】__________。#include using namespace std;int main(){int num = 0;while (num <= 2){num++;cout << num << " ";}cout << endl;return 0;}

查看答案
更多问题

//下列程序运行的结果是【1】__________。#includeintmain(){intt=1,i=5;for(;i>=2;i--)t*=i;printf("%d\n",t);return0;}

//下列程序运行的结果是【1】__________。#includeintmain(){inti;for(i=1;i<=5;i++){if(i%2)printf("*");elseprintf("#");}printf("$\n");return0;}

//下列程序的输出结果是【1】__________。#includeintmain(){intn=2,k=0;while(k++&&n++>2);printf("%d,%d\n",k,n);return0;}

//若从键盘上输入5648,下列程序输出结果为【1】___________。#includeintmain(){inta,b,s=0;scanf("%d",&a);while(a!=0){b=a%10;a=a/10;s=s+b;}printf("%d",s);return0;}

答案查题题库