执行下列程序段后,i和m的值为()。 m = 0 For i = 1 To 3 For j = 1 To i m = m + j Next j, 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
- 中国大学MOOC: 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i
- 执行如下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
- 下列程序段的执行结果为________。 Dim M(10), N(10) i= 4 For j = 1 To 7 M(j) = j N(i) = 2 * i + j Next j Print N(i); M(i)
- 下列程序段的执行结果为_______。 M=0 For I=1 To 3 For J =5 To 1 Step-1 N = N+1 Next J,I Print N;J;I