【简答题】【消耗次数:1】
以下程序输出结果是[填空1]。#include stdio.hvoid main(){ int i, sum=0;for(i=1; i i++)sum+=i;printf(″%d\n″,sum);}
参考答案:
复制
纠错
相关题目
【简答题】 以下程序输出结果是[填空1]。#include stdio.hvoid main(){ int i, sum=0;for(i=1; i i++)sum+=i;printf(″%d\n″,sum);}
【简答题】 以下程序输出结果是[填空1]。#include stdio.hvoid main(){ int i, sum=0;for(i=1; i i++)sum+=i;printf(″%d\n″,sum);}
【单选题】 下面程序执行后的结果是() #include stdio.h void fun( ) { int i,sum=0; int a[5]={1,2,3,4,5}; for (i=0;i { if (a[i]%2==0) { sum+=a[i]; } } printf(%d,sum); } void main( ) { fun( ); }
①  6
②  15
③  9
④  11
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){ int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){ int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 下面程序以每行4个数据的形式输出a数组。#define N 20 #include stdio.hvoid main() { int a[N],i;for(i=0; i i++) scanf(%d,[填空1]);for(i=0; i i++) { if([填空2]) [填空3]; printf(%3d,a[i]);}}
【单选题】 有以下程序,程序执行后的输出结果是( ) #include int fun(int x [ ],int n) { static int sum=0,i; for(i=0; i{ sum+=x[i]; } return sum; } void main( ) { int a[ ]={1,2,3,4,5}; int b[ ]={6,7,8,9},s=0; s=fun(a,5)+fun(b,4); printf(%d\n,s); }
①  45
②  50
③  60
④  66
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=0;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=1;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
随机题目
【单选题】 Hi, Peter, how is everything with you?____________
①  Don’t mention it.
②  Pretty fast.
③  Thanks.
④  Hm, not too bad.
【单选题】 _______ is your girlfriend like?She is very kind and good-looking.
①  How
②  What
③  Which
④  Who
【单选题】 Jane’s dress is similar in design ______ her sister’s.
①  like
②  with
③  to
④  as
【单选题】 ___________ a business
①  take over
②  produce
③  grow
④  set up
【单选题】 I was fitted an ______ tooth by the dentist.
①  hard
②  artificial
③  white
④  new
【单选题】 I think his hard work will _______ big success in the end.
①  take up
②  put out
③  get by
④  result in
【单选题】 Is the library _______ now? No, its _______.
①  open;close
②  opening;closing
③  open;closed
④  opened;closed
【单选题】 Although they plant trees in this area every year, the tops of some hills are still ______.
①  blank
②  hollow
③  vacant
④  bare
【单选题】 Do let me know immediately if something unexpected______.
①  rises
②  raises
③  praises
④  arises
【单选题】 Do you mind changing seats with me?_________
①  Yes, you can.
②  Of course, I like to.
③  No, I don’t mind.
④  Certainly, please do.