int x=0; int y 10; do { y--; ++x; } while (x < 5); System.out.print(x + “,“ + y); What is the result?()
public class WhileFoo { public static void main (String []args) { int x= 1, y = 6; while (y--) {x--;} system.out.printIn(“x=” + x “y =” + y); } } What is the result?()
public class WhileFoo { public static void main (String args) { int x= 1, y = 6; while (y--) {x--;} system.out.printIn(“x=” + x “y =” + y); } } What is the result?()
int x=0; int y=10; do{l3.y--; ++x; }while(x<5); System.out.print(x+","+y); What is the result?()
下列语句执行后y的值为:() int x=0,y=0;while(x<10){y+=(x+=2);}
下列程序段执行以后,内存变量Y的值是( )。 CLEARx=12345y=ODO WHILE x>0y=y+x%10x=int(x/l0)ENDDo?Y
执行以下程序后,y的值是() main() { int a[]={2,4,6,8,10}; int y=1,x,*p; p=&a[1]; for(x=0;x<3;x++) y + = * (p + x); printf(""%d\n"",y); }
下面函数int fun1(char*x){ char *y=x;while(*y++);return(y-x-1);}的功能是( )
int x=0,y=0;while(x<15)y++,x+=++y;cout<
下列程序的输出结果是()。 void f(int*x,int*y) {int t; t=*x,*x=*y;*y=t; } main() {int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(p<q) {f(p,q);p++;q--;} for(i=0;i<8;i+)printf("%d,",a[i]); }
有以下程序 main() { int x=0,y=5,z=3; while(z-->0&&++x<5)y=y-1; printf("%d,%d,%d\n",x,y,z); } 程序执行后的输出结果是
设以下变量均为int类型,则值不等于7的表达式是()。A.(x=y=6,x+ y,x+1)B.(x=y=6,x +y,y+1)C.(x=6,x
有如下代码:int x=2,y=10;while(x++<--y){},循环执行的次数是()。
4、以下循环体将被执行()次 int x=5,y =20; do{ y-=x; x+=2; } while(x<y);
下列程序的运行结果是()。 main() { int x=1,y=3,a=0; while(x++!=(y-=1)) { a+=1; if(y<x)break; } printf("%d,%d,%d\n",x,y,a); }
下述函数功能是 ______。int funr(char*x){char*y=x;while(*y++);return y-x-1;}A.求字符串的长度
publicclassWhileFoo{publicstaticvoidmain(Stringargs){intx=1,y=6;while(y--){x--;}system.out.printIn(x=”+xy=”+y);}}Whatistheresult?()
下列程序段执行以后,内存变量y的值是()。x=34567y=0DO WHILE x>0 y=x%10+y*10 X=int(x/10)ENDDO
根据变量定义“static int x[5],y[2][3]={9,6,3,1,4,7};”,x[4]=【】,y[1][2]=【】。
下列程序段执行以后,内存变量y的值是()。 x=34567 y=0 DO WHILE x>0 y=x%10+y*10 x=int(x/1
以下程序执行后的输出结果是()。main(){int x = 1,y = 1;while(y<=5){if(x>=10)break;if(x%2==0){x+=5;continue;}x-=3;y++;}printf(“%d,%d”,x,y);}
下列循环体执行的次数是()。int y=2, x=4;while(&8211;x != x/y){ }
下面程序段执行后的输出结果是()。using System;class test{ static void Main(){ int x = 0, y = 5, z = 3; while (z– > 0 && ++x < 5) y = y – 1; Console.WriteLine(“{0},{1},{2}”, x, y, z); }}
有以下程序: include main { int x=4,y; do { y=x; if(!y)printf("x"); else printf("y"): x--; }while(x); } 程序的输出结果是()。