下列程序段中,循环体s = s +1执行了几次? For i = 0 To 7 Step 3 For j = 0 To 7 Step 2 s = s + 1 Next Next
举一反三
- 下列程序段中,循环体s = s +1执行了几次?For i = 0 To 7 Step 3 For j = 0 To 7 Step 2 s = s + 1 NextNext A: 5 B: 7 C: 12 D: 49
- 下列程序循环次数为______。 s = 0 For i = 1 To 20 Step 2 s = s + i Next i
- 下列程序中 s = s + j 语句共执行了______次。 Dim s As Integer Dim i As Integer, j As Integer For i = 1 To 10 Step 2 For j = 1 To 5 Step 2 s = s + j Next j Next i Print s
- 执行下列程序段后,程序的运行结果为()。 s = 1 For i = 1 To 3 For j = 0 To i - 1 s = s + s * j Next j Print s; Next i
- 存在程序段: s=0 For i=1 to 10 step 2 s= s + 1 i= i * 2 Next i 当循环结束后,变量i ,s 的值分别为().