[填空题] Private Sub Form_Activate( ) For j = 1 to 3 x=3 For i = 1 to 2 x=x+6 Next Next Print x

12 查阅

[填空题] Private Sub Form_Activate( )

For j = 1 to 3

x=3

For i = 1 to 2

x=x+6

Next

Next

Print x

End Sub

程序运行后,窗体上显示的结果为 【14】

参考答案:

O

每一次j的赋值后x都等于3,所以只用计算最后一层循环当j=3时i=1时,x=3+6=9.i=2时,x =9-6=15

计算机考试