在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:
Private Sub Command1_Click(
)
Sum = 0
For x = 1 To 5
Call sub1(x, s)
Sum = Sum + s
Next x
Print Sum
End Sub
Private Sub sub1(y, w)
w = 1
For i = 1 To y
w = w * i
Next i
End Sub
程序运行后,单击命令按钮,则窗体上显示的内容是________。
A.5
B.120
C.153
D.160
参考答案:C