问答题

下面程序的运行结果是[填空1]
  #include
  main()
 {int a,s,n,count;
  a=2;
  s=0;
  n=1;
  count=1;
  while(count<=7)
  {n=n*a;
   s=s+n;
   count=count+1;}
  printf("s=%d",s);
 

【参考答案】

1、S=254
<上一题 目录 下一题>
热门 试题

单项选择题
It is important to remember that when the JFET is used as a voltage variable resistor, which is one of its practical applications, the voltage VDS is ________ VDS(max) and | VGS | is ________ |VP|.
A.very much greater than; very much greater than
B.very much less than; very much greater than
C.very much greater than; very much less than
D.very much less than; very much less than
单项选择题
《义务教育法》不仅规范学校的教育教学行为,而且规范( )的教育行为。 A、全社会 B、教师 C、其他教育机构 D、教育从业人员
相关试题
  • 的设计思想是将数据文件以指定的大小切分成...
  • How about seeing a movie with me ...
  • One cannot claim compensations with...
  • 全面深化改革是中国特色社会主义的本质要求...
  • 在分流河道砂体中,顺流向的渗透率____...