填空题

以下程序运行后的输出结果是______。
#include <stdio.h>
main()
int a=1,b=7;
do
b=b/2;a+=b;
while (b>1);
printf("%d\n",a);)

【参考答案】

E
<上一题 目录 下一题>
热门 试题

填空题
函数pi的功能是根据以下近似公式求π值: 请在下面的函数中填空,完成求π的功能。 #include <math.h> double pi(long n) double s = 0.0; long i; for(i = 1;i <= n; i++) s = s + ; return (sqrt(6*s));
填空题
当执行以下程序时,输入1234567890<回车>,则其中while循环体将执行______次。 #include<stdioh> main() char ch; while((ch=getchar())==’0’)printf( # );
相关试题
  • 已有定义:double *p;,请写出完整的语...
  • 以下程序的功能是:求出数组x中各相邻两个...
  • 以下程序的功能是:删去一维数组中所有相同...
  • 下面程序将二维数组a的行和列元素互换后存...