题目内容:
以下能够正确计算n!的程序是( )。
A.PrivateSubCommand1_Click() n=5:x=1
Do
x=x*I
I=I+1
LoopWhileI<n
Printx
EndSub
B.PrivateSubCommand1_Click()
n=5:x=1:I=1
Do
x=x*I
I=I+1
LoopWhileI<n
Printx
EndSub
C.PrivateSubCommand1_Click()
n=5:x=1:I=1
Do
x=x*I
I=I+1
LoopWhileI<=n
Printx
EndSub
D.PrivateSubCommand1_Click()
n=5:x=1:I=1
Do
x=x*I
I=I+1
LoopWhileI>n
Printx
EndSub
参考答案:
答案解析: