中国大学MOOC: 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i
举一反三
- 执行下列程序段后,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
- 变量m的初值是55,执行完以下程序段后,m的值为( )。for(i=1;i<=3;i++)for(j=3;j<=i;j++)m=m%j;? 2|0|1|3
- 下列程序段的执行结果为________。 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)
- 执行如下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