运行如下程序后,输出结果为______。 a = 0 For j = 1 To 30 Step 2 a = a + j mod 5 Next j Print a
举一反三
- 有如下程序: a=0 For j=1 To 20 Step 2 a=a+j\5 Next j Print a 运行后,输出的结果是______。 A: 12 B: 16 C: 40 D: 100
- 有如下程序: a=10 b=4 For j=1 to 20 Step –2 a=a+5 b=b+4 Next j Print a;b 程序运行后,输出的结果是
- 下面的程序段执行后共循环了 次 For i = 1 To 2 For j = 5 To 1 Step -1 Print i*j Next j Next i
- 执行下列程序段后,程序的运行结果为()。 s = 1 For i = 1 To 3 For j = 0 To i - 1 s = s + s * j Next j Print s; Next i
- 执行下面程序段后,输出的结果为( )。 Dim m(5) As Integer s = 0 For i = 0 To 5 m(i) = 5 Next i For j = 0 To 5 s = s + m(j) Next j Print s