执行下面程序后,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;}
下面程序的运行结果是( )。#includeint main(){int i=1,a=0,s=1;do{a=a+s*i;s=-s;i++;}while (i<=10);printf(“a=%d”,a);return 0;}
当运行以下程序时,从键盘键入1 2 3 4 5 -1<回车>,则下面程序的运行结果是( )。#includeint main(){int k=0,n;do {scanf(“%d”,&n);k+=n;}while (n!=-1);printf(“k=%d,n=%d\n”,k,n);return 0;}
下面程序的运行结果是( )。#includeint main(){int x=-5;do {printf(“%3d”,x+=2);}while (!(x++));return 0;}