下列语句执行后就量m的值是 m=1 For i=1 to 4 m=m*i Next i
A: 1
B: 24
C: 12
D: 10
A: 1
B: 24
C: 12
D: 10
举一反三
- 中国大学MOOC: 下列语句执行后就量m的值是 m=1 For i=1 to 4 m=m*i Next i
- 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i A: 3 6 B: 3 10 C: 4 6 D: 4 10
- 执行如下VB代码后,变量i和m的值分别是( ): m% = 0 For i = 1 To 3 For j = 1 To i m = m + j Next j Next i A: 3 6 B: 3 10 C: 4 6 D: 4 10
- 执行下列程序段后,i和m的值为()。 m = 0 For i = 1 To 3 For j = 1 To i m = m + j Next j, i
- 下列程序执行后,其输出结果为( )。 Dim a(5) For i=0 To 4 a(i)=i+1 m=i+1 If m=3 Then a(m-1)=a(i-2)Else a(m)=a(i) If i=2 Then a(i-1)=a(m-3) a(4)=i Print a(i); Next i A: 1 1 1 4 4 B: 1 2 3 4 1 C: 1 2 1 4 4 D: 1 1 1 4 1