有如下程序: Private Sub Form_Click() Dim s As Integer, p As Integer p=1 For i=1 To 4   For j=1 To i s=s+j   Next j   p=p * s Next i P

admin2018-12-20  36

问题 有如下程序:
Private Sub Form_Click()
Dim s As Integer, p As Integer
p=1
For i=1 To 4
  For j=1 To i
s=s+j
  Next j
  p=p * s
Next i
Print p
End Sub
程序运行后,单击窗体,则输出结果是(  )。

选项 A、90
B、180
C、400
D、800

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/9NFp777K
0

最新回复(0)