单选题下面的DO循环中,一共循环()次。 M=5 N=1 DO WHiLEN=M N=N+1 ENDDOA1B6C4D5
单选题
下面的DO循环中,一共循环()次。 M=5 N=1 DO WHiLEN<=M N=N+1 ENDDO
A
1
B
6
C
4
D
5
参考解析
解析:
暂无解析
相关考题:
单击命令按钮时,下列程序的运行结果为 Private Sub Command1_Click() Print Fun(23,18) End Sub Public Function Fun(m As Integer,n As Integer)As Integer Do While m<>n Do While m>n:m=m-n:Loop Do While m<n:n=n-m:Loop Loop Fun=m End FunctionA.0B.1C.3D.5
下列程序是死循环的是A.for(;;);B.int s=36; while(S)--S;C.int m=10; do { m- - }while(m0);D.int n=5; while(n1) { n- -; if(n0)break; }
下列程序是死循环的是 ( )A.for(;;)B.int s=36; while(s)=s;C.int m=10; do{m- -;}while(m>0);D.int n=5; while(n>1) { n- -; if(n<0)break; }
有如下程序: SET TALK OFF M=O N=O DO WHILE NM M-M+N N=N-10 ENDDO ?M RETURN 运行此程序显示M的值( )。A.0B.10C.100D.99
单击命令按钮时,下列程序代码的运行结果为 Private Sub Command1_Click() Print MyFunc(20, 18) End Sub Public Function MyFunc(m As Integer, n As Integer)As Integer Do While m<>n Do While m>n:m=m-n:Loop Do Whle m<n:n=n-m:Loop Loop MyFunc=m End FunctionA.0B.2C.4D.6
下列语句中,不能实现循环100次的是A.N=0 Do N=N+1 Loop Until N>=100B.N=0 Do N=N+1 Loop While n<100C.N=0 N=N+1 Do Loop Until N<100D.N=0 Do While n<100 N=N+1 Loop
单击命令按钮时,下列程序的运行结果为Private Sub Command1_Click( ) Print MyBM(23,18)End SubPublic Function MyBM(m As Integer,n As Integer)As Integer Do While m n Do While m > n:m=m - n:Loop Do While m < n:n=n - m:Loop Loop MyBM=mEnd FunctionA.0B.1C.3D.5
单击命令按钮时,下列程序代码的执行结果为______ 。Public Function MyFune(m As Integer,n As Integer) As Integer Do While m<>n Do While m>n m=m-n Loop Do While m<n n=n -m Loop Loop MyFunc=mEnd FunctionPrivate Sub Command1_Click() Print MyFunc(24, 18)End SubA. 2B.4C.6D.8
下列程序的运行结果是( )。 Private Function myfun(m,n) Do While m>n Do While m>n:m=m-n:Loop Do While n>m:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9,8) End SubA.2B.1C.4D.3
下列程序的运行结果是( )。 Private Function myfun(m, n) Do While m > n Do While m>n:m=m-n:Loop Do while n>m:n=n-m:Loop Loop myfun=m End Function Private Sub Command1_Click() Print myfun(9, 8) End SubA.2B.1C.4D.3
设有5个表:std1.dbf~std5.dbf,以下程序的功能是要删除每个表文件的末记录。 n=1 DO WHILE n<=5 db=【 】 USE db GOTO BOTTOM DELETE PACK n=n+1 ENDDO USE
单击命令按钮时,下列程序的运行结果为 Private Sub Command1_Click( ) Print MyFund(20,18) End Sub Public Function MyFund(m As Integer,n As Integer)As Integer Do While m◇n Do While mn:m=m-n:Loop Do While m<n:n=n-m:Loop Loop MyFund=m End FunctionA.0B.2C.4D.6
下列语句中,不能实现循环100次的是A.Do N=N+1 Loop Until N>=100B.Do N=N+1 Loop While n<100C.Do N=N+1 Loop Until N<100D.Do While n<100 N=N+1 Loop
下面的子程序求一方阵的次对角线上的元素之和。SUBROUTINE CDJX(M,N,K)DIMENSION M(N,50)DO 10 J = 1,NK=_10 CONTINUE RETURN END为了使程序完整,应在_处填入的是:A.K+M(J,J)B.K+M(J,N+1—J)C. K+M(N+J,J)D. K+M(N+J,N-J)
单选题运行下面的程序后,所得到的M值是()M=0N=0DO WHILE NM M=M+NN=N-10ENDDO?MA-10B0C10D100