【简答题】【消耗次数: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}
随机题目
【单选题】 14. I’m confident that you are _______a good job at your new position.
①  able of doing
②  capable of doing
③  capable to do
④  able at doing
【单选题】 8.______ your request for a make-up test, we have referred the matter to the school authority.
①  For the purpose of
②  With regard to
③  In view of
④  In accordance with
【单选题】 16. _____ money, they are rich.
①  In terms of
②  About
③  Because of
④  By way of
【单选题】 30. Mary is ______ hardworking than her sister, but she failed in the exam.
①  no less
②  no more
③  not less
④  not so
【单选题】 20._____your poor record at school, we think you should study more.
①  In view of
②  For view of
③  From view of
④  Within view of
【单选题】 25.If you explained the situation to your lawyer, he ______ able to advise you much better than I can.
①  will be
②  was
③  would be
④  were
【单选题】 5. The rescue team set out for the earth-stricken area _______ the constant aftershocks.
①  in spite
②  despite of
③  despite
④  but for
【单选题】 13. His evasive answer is ______to lying.
①  same
②  related
③  equivalent
④  different
【单选题】 12. If you _______materials from other books in your paper, you should mark them out.
①  cite
②  learn
③  borrow
④  assure
【单选题】 11.In general she is amiable, but ______she is not her own self.
①  in time
②  on time
③  at times
④  by time