有如下语句,执行后该段语句的循环次数是_____。 Dim s,I,j as integer For I =1 to 3 For j=3 To 1 Step-1 S=I*j Next j 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
- 下列程序段的执行结果为 _______。 Dim a(3, 5) As Integer Dim i As Integer, j As Integer For i = 1 To 3 For j = 1 To 5 a(i, j) = a(i - 1, j - 1) + (i - 1) * 5 + j Next j Next i Print a(3, 4)
- 18,有如下语句,执行后该段语句的循环次数是( )。 Dims,i,j as integer Fori=1 to 3 Forj=3 to 1 Step-1 s=i*j Nextj Nexti A: 9 B: 10 C: 3 D: 4
- 以下程序段中语句 Print i*j 执行的次数是。 For i=1 to 3 For j=5 to 1 step -1 Print i*j Next j,i
- 中国大学MOOC: 对于下面的程序,其循环执行的次数为:______。 For i = 1 To 3 For j = 5 To 1 Step -1 Label1.Text = i + j Next j Next i