单选题 阅读程序:
Function fac(ByVal As Integer)As Integer
Dim temp As Integer
temp=1
For i%=1 To n
temp=temp*i%
Next i%
fac=temp
End Function
Private Sub Form_Click()
Dim nsum As Integer
nsum=1
For i%=2 To 4
nsum=nsum+fac(i%)
Next i%
Print nsum
End Sub
程序运行后,单击窗体,输出结果是______。
【正确答案】 C
【答案解析】[解析] 本题考查的是函数的调用,Function函数的意义是某个数的阶乘,所以通过计算结果为4!+3!+2!+1!=33