下列程序段运行后X的值是().x = 0 For i = 1 To 5 For j = i To 3 x = x + 1 Next j Next i A.0 B.5 C.6下列程序段运行后X的值是().x = 0For i = 1 To 5For j = i To 3x = x + 1Next jNext iA.0 B.5 C.6 D.15 C
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 00:27:41
下列程序段运行后X的值是().x=0Fori=1To5Forj=iTo3x=x+1NextjNextiA.0B.5C.6下列程序段运行后X的值是().x=0Fori=1To5Forj=iTo3x=x+
下列程序段运行后X的值是().x = 0 For i = 1 To 5 For j = i To 3 x = x + 1 Next j Next i A.0 B.5 C.6下列程序段运行后X的值是().x = 0For i = 1 To 5For j = i To 3x = x + 1Next jNext iA.0 B.5 C.6 D.15 C
下列程序段运行后X的值是().x = 0 For i = 1 To 5 For j = i To 3 x = x + 1 Next j Next i A.0 B.5 C.6
下列程序段运行后X的值是().
x = 0
For i = 1 To 5
For j = i To 3
x = x + 1
Next j
Next i
A.0 B.5 C.6 D.15 C
下列程序段运行后X的值是().x = 0 For i = 1 To 5 For j = i To 3 x = x + 1 Next j Next i A.0 B.5 C.6下列程序段运行后X的值是().x = 0For i = 1 To 5For j = i To 3x = x + 1Next jNext iA.0 B.5 C.6 D.15 C
i=1的时候,J=1,可以循环3次(1,2,3),此时x=3
i=2的时候,J=2,可以循环2次(2,3),此时x=5
i=3的时候,J=3,可以循环1次(3),此时x=6
所以选C