第一题SET TALK OFFSTORE 0 TO X,YDO WHILE.T.X=X+1Y=Y+XIF X>=5EXI
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/15 16:07:23
第一题
SET TALK OFF
STORE 0 TO X,Y
DO WHILE.T.
X=X+1
Y=Y+X
IF X>=5
EXIT
ENDIF
ENDDO
X,Y
SET TALK ON
第二题
SET TALK OFF
DIMESSIN A(6)
FOR K=1 TO 6
A(K)=20– 2*K
ENDFOR
K=5
DO WHILE K>=2
A(K)=A(K)- A(K – 1)
K=K – 1
ENDDO
A(1),A(3),A(5)
SET TALK ON
这个 是VF程序 请直接给出答案
SET TALK OFF
STORE 0 TO X,Y
DO WHILE.T.
X=X+1
Y=Y+X
IF X>=5
EXIT
ENDIF
ENDDO
X,Y
SET TALK ON
第二题
SET TALK OFF
DIMESSIN A(6)
FOR K=1 TO 6
A(K)=20– 2*K
ENDFOR
K=5
DO WHILE K>=2
A(K)=A(K)- A(K – 1)
K=K – 1
ENDDO
A(1),A(3),A(5)
SET TALK ON
这个 是VF程序 请直接给出答案
此题一般是笔试题,应该用人算,当然机器更方便,如果考试的时候能用的话·····
1.x=5,y=15
2.A(1),A(3),A(5)分别为18,-2,-2
不信可以用机器:(我改过的···)
SET TALK OFF
STORE 0 TO X,Y
DO WHILE .t.
X=X+1
Y=Y+X
IF X>=5
EXIT
ENDIF
ENDDO
?X,Y
SET TALK ON
####################
SET TALK OFF
DIME A(6)
FOR K=1 TO 6
A(K)=20-2*K
ENDFOR
K=5
DO WHILE K>=2
A(K)=A(K)- A(K-1)
K=K-1
ENDDO
?A(1),A(3),A(5)
SET TALK ON
1.x=5,y=15
2.A(1),A(3),A(5)分别为18,-2,-2
不信可以用机器:(我改过的···)
SET TALK OFF
STORE 0 TO X,Y
DO WHILE .t.
X=X+1
Y=Y+X
IF X>=5
EXIT
ENDIF
ENDDO
?X,Y
SET TALK ON
####################
SET TALK OFF
DIME A(6)
FOR K=1 TO 6
A(K)=20-2*K
ENDFOR
K=5
DO WHILE K>=2
A(K)=A(K)- A(K-1)
K=K-1
ENDDO
?A(1),A(3),A(5)
SET TALK ON
一道VF题求答案SET TALK OFFCLEARSTORE 0 TO X,YDO WHILE .T.X=X+1DO C
SET TALK OFF,X=2 ,DO WHILE X
input xif x >0 theny=1elsex
VFP 如下.SET TALK OFFX=5DO WHILE .T.X=X+1IF X=INT(X/5)*5ELSELO
vf题 set talk off s=0 x=2 y=5 do RR “s=”,s return
x=5,y=110{x=y/x; y=y-x;}while(y>=1); 求x y
int x=78; int y=0; while(x>0){ y++; }else x=x&(x-1); System.
c#中关于long y = 1; int x = 10; while (x > 0) { y = y * x; x--;
int x=0,y=0; while(x
x=0 y=0 do while x
x=1 y=2 do x=x*y y=y+1 loop while y
X=2 Y=4 Do x=x*y y=y+1 Loop While y