【单选题】【消耗次数:1】
#include stdio.hvoid main(){ int i,j,k; for(i=1;ii++) for(j=0;jj++) for(k=0;kk++) if( (i*100+j*10+k)==((i*i*i)+(j*j*j)+(k*k*k))) printf(%d%d%d ,i,j,k);}该程序可以输出所有的(  )。
素数
奇数
偶数
水仙花数
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是()。voidmain(){inti,j,k=0;for(i=3;ii--){for(j=i;jj++)k+=i*j;}printf("%d\n",k);}
①  19
②  29
③  6
④  25
【判断题】 广义表的( a , d , e , (i ,j ) ,k )表尾是( d , e , (i ,j ) ,k )。
①  正确
②  错误
【单选题】 程序:inti=10,j=10,k=3;k*=i+j;k最后的值是:()
①  40
②  50
③  60
④  70
【单选题】 以下循环体的执行次数是#include stdio.hvoid main(){ int i,j; for(i=0,j=1; i i=i+2) j--; }
①  3
②  2
③  1
④  0
【单选题】 设j和k都是int类型,则for循环语句(). for(j=0,k=0; j scanf(%d,&k);
①  最多执行10次
②  最多执行9次
③  是无限循环
④  循环体一次也不执行
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【单选题】 以下程序段的运行结果是()。inta[]={1,2,3,4},i,j;j=1;for(i=3;ii--){a[i]=a[i]*j;j=j*3;}for(i=0;ii++)printf("%d",a[i]);
①  36912
②  181294
③  271894
④  541894
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
随机题目
【单选题】 He _______ to study harder in the future so that he could have more opportunities to find a better job.
①  resolved
②  resorted
③  requested
④  reserved
【单选题】 She accused the man _____ breaking into her house.
①  at
②  of
③  for
④  with
【单选题】 Students with _______ problems may apply for student loans.
①  economic
②  financial
③  male
④  economical
【单选题】 James Fraser ____ tradition by using three actual American Indians as models for his creation.
①  went out
②  went for
③  went in
④  went against
【单选题】 Many manufacturers were accused of concentrating too heavily on cost reduction, often at the ____ of the quality of their products.
①  expense
②  exposure
③  expansion
④  expectation
【单选题】 I always ____ what I have said.
①  get to
②  hold to
③  lead to
④  see to
【单选题】 The manager promised to keep me ____ of how our business was going on.
①  to be informed
②  on informing
③  informed
④  informing
【单选题】 I’m very sorry to have ____ you with so many questions on such an occasion.
①  interfered
②  offended
③  impressed
④  bothered
【单选题】 If we say some food is ____, we mean it is safe to eat.
①  ideal
②  editable
③  ideate
④  edible
【单选题】 Most people came to realize that it was about time the government ____ further measures to control the population.
①  must take
②  is taking
③  takes
④  took