下面程序的运行结果是()。#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;}
执行下面程序后,k值是()。#includeint main(){int k=1,n=263;do{k*=n%10;n/=10;}while (n);printf(“%d\n”,k);return 0;}
下面程序的运行结果是( )。#includeint main(){int x=2;do{printf(“*”);x--;}while (!x==0);return 0;}