下列程序段的执行结果为m=2n=3Dom=m + nn=n + 1Loop While m 10Print m; n( )。A.1 5B.14 6C.a bD.10 25

下列程序段的执行结果为

m=2

n=3

Do

m=m + n

n=n + 1

Loop While m < 10

Print m; n( )。

A.1 5

B.14 6

C.a b

D.10 25


相关考题:

下列程序段的执行结果为m=2n=3Dom=m+nn=n+1Loop While m<10Print m;nA.1 5B.14 6C.a bD.10 25

下列程序段执行结果为 m=5 n=-6 If Not X〉0 Then m=n-3 Else n=m+3 Print m-n;n-mA.-3 3B.5-9C.3-3D.-65

下列程序段的执行结果为 m=2 n=3 Do m=m+n n=n + 1 Loop While m<10 Print m;nA.1 5B.14 6C.a bD.10 25

单击命令按钮后,下列程序代码的执行结果是______。Public Sub fun (a As Integer, b As Integer, c As Integer)Doa=b+ cn=n+1Loop While n > 3End SubPrivate Sub command1_ click()Dim m As Integer, n As Integer, i As IntegerFor i = 0 To 2: m = n + 1: Next iFor i = 1 To 2: Call fun (m, n, i): Next iFor i = 0 To 3Print m;Next iEnd Sub

下列程序的执行结果为 Private Sub Comrnandl_Click( ) Dim p As Integer, q As Integer p=12:q=20 Call Value(p, q) Print p; q End Sub Private Sub Value(ByVal m As Integer, ByVal n As Integer) m=m * 2: n=n - 5 Print m; n End SubA.20 12 20 15B.12 20 12 25C.24 15 12 20D.24 12 12 15

下列程序段的执行结果为m=2n=3Dom=m + nn=n + 1Loop While m 10Print m; nA.1 5B.14 6C.a bD.10 25

10、执行下面的程序段后,m的值为______。 Dim m%, n% For n = 1 To 20 If n Mod 3 <> 0 Then m = m + n \ 3 Next n Label1.text = mA.70B.18C.24D.42

3、设以下变量均为int类型,则值不等于3的表达式是 。A.(m=n=2, m+n, m+1)B.(m=n=2, m+n, n+1)C.(m=2, m+1, n=2, m+n)D.(m=2, m+1, n=m, n+1)

【填空题】当从键盘输入-1 0<CR>,则以下程序的运行结果是 。 #include<stdio.h> main() {int a,b,m,n; m=n=1; scanf("%d%d",a,b); do{if(a>0) {m=2*n;b++;} else {n=m+n;a+=2;b++;} }while(a==b); printf("m=%d n=%dn",m,n); }