以下能够正确计算n!的程序是()。 A.PrivateSubCommand1_Click() n=5:x=1 Do x=x*I

计算机 程序, 已帮助 人

以下能够正确计算n!的程序是()。

A.Private Sub Command1_Click()

n=5: x=1

Do

x=x * I

I=I + 1

Loop While I < n

Print x

End Sub

B.Private Sub Command1_Click()

n=5: x=1: I=1

Do

x=x * I

I=I + 1

Loop While I < n

Print x

End Sub

C.Private Sub Command1_Click()

n=5: x=1: I=1

Do

x=x * I

I=I + 1

Loop While I <=n

Print x

End Sub

D.Private Sub Command1_Click()

n=5: x=1: I=1

Do

x=x * I

I=I + 1

Loop While I > n

Print x

End Sub

请帮忙给出正确答案和分析,谢谢!

热搜:n阶方阵a与对角矩阵相似的充要条件