执行下面的程序段后,循环参数i、j的值分别为() For i=1 to 3 For j=4 to 1 setp -1 Print i*j Next j Next i
举一反三
- 下面的程序段执行后共循环了 次 For i = 1 To 2 For j = 5 To 1 Step -1 Print i*j Next j Next i
- 下面____程序段不能正确显示1!、2!、3!、4!的值。 A: For I=1 To 4 n=1 For j=1 to I n=n*j Next j Print n Next I B: For I=1 To 4 For j=1 to I n=1 n=n*j Next j Print n Next I C: n=1 For j=1 to 4 n=n*j Print n Next j D: n=1:j=1 Do While j<=4 n=n*j Print n j=j+1Loop
- 下列程序段的执行结果为 _______。 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)
- 假设有以下程序段: For i=1 to 3 For j=5 to 1 Step -1 Next j Next i Print i,j 则i、j的值分别是
- 以下程序段中语句 Print i*j 执行的次数是。 For i=1 to 3 For j=5 to 1 step -1 Print i*j Next j,i