下面程序的运行结果是()。#includeint main(){int a=0, i=0;while (a<=6)
查看答案
下面程序的运行结果是()。#includeint main(){int a=0, i=0;do {++i;a+=i;} while (a<=6);printf("%d\n",a);return 0;}
下面程序的运行结果是()。#includeint main(){int a=0;while (a*a*a<=10) ++a;printf(“a=%d\n”,a);return 0;}
当运行下面程序时,从键盘键入right?<回车>,则下面程序的运行结果是()。#includeint main(){char c;while ((c=getchar())!=’?’)putchar(++c);return 0;}
下面程序的运行结果是()。#includeint main(){int a,s,n,count;a=2;s=0;n=1;count=1;while(count<=7){n=n*a;s=s+n;++count;}printf(“%d”,s);return 0;}