【程序】SET TALK OFFCLEARX=3DO WHILE .T.X=X+1IF X=INT(X/3)*3? XELSELOOPENDIFIF X>10EXITENDIFENDDOSET TALK ONRETURN当变量X的值第一次变化时,X的输出结果为 ______。A.3B.6C.8D.12
【程序】
SET TALK OFF
CLEAR
X=3
DO WHILE .T.
X=X+1
IF X=INT(X/3)*3
? X
ELSE
LOOP
ENDIF
IF X>10
EXIT
ENDIF
ENDDO
SET TALK ON
RETURN
当变量X的值第一次变化时,X的输出结果为 ______。
A.3
B.6
C.8
D.12
相关考题:
有以下程序:void f(int *x,int *y){ int *t; t=x; x=y ;y=t; *x=*y;}main(){ int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=a[7]; while(pq) { f(p,q);p++;q--} for(i=0;i8;i++)printf("d,",a[i]);}程序运行后的输出结果是( )。A.8,2,3,4,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3,4,5,6,7,8,D.8,7,6,5,4,3,2,1,
下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5
下列程序的输出结果是()。includevoidp(int*x){printf("%d",++*x);}voidmain(){int y=3 下列程序的输出结果是( )。#include<stdio.h>voidp(int*x){printf("%d",++*x);}voidmain(){int y=3;p(y);}A.3B.4C.2D.5
下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5
下列程序的输出结果是()。 include voidp(int*x) {printf("%d",++*x); } voidmain() {i 下列程序的输出结果是( )。#include<stdio.h>voidp(int*x){printf("%d",++*x);}voidmain(){int y=3;p(y);}A.3B.4C.2D.5
设有如下程序: public class Sun { public static void main (String args[ ]) { int x,y; x= (int) Math.sqrt (2) /2+ (int) Math.random ()*2/2; y= (int) Math.sqrt (3) /3+ (int) Math.random ()*3/3; if (x>y) System.out.println ("x>y"); else if (x==y) System.out.println("x=y"); else System.out.println("x<y"); } } 程序运行的结果为( )。A.x>yB.x=yC.x<yD.以上都不对
下列程序的输出结果是()。include void p(int *x){printf("%d",++*x);}void main(){ in 下列程序的输出结果是( )。 #include <stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5
下面程序段的运算结果正确的是( )。 Dim x As Single Dim y As Single If x < 0 Then y=3 Elself x < 1 Then y=2*x Else: y= -4 * x+6 End IfA.当x=2时,y=-2B.当x=1时,y=3C.当x=0.5时,y=-4D.当x=-2.5时,y=11
有以下程序:include void f(int * x,int * y) int t;t= *x; *x= *y; *y=t;main ( ){in 有以下程序:#include <stdio.h>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]); }程序运行后的输出结果是( )。A.8,2,3,4.,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3,4,5,6,7,8,D.8,7,6,5,4,3,2,1,
若X是int型变量,且有下面的程序片段: for (X=3;X < 6;X++) printf((X%2)?("**%d"):("##%dn"),X); 上面程序片段的输出结果是A.**3B.##3,换行C.##3D.**3##4 **5