求助!VB作业~

N!=1*2*3…*N怎么写?
2024-12-18 02:08:15
推荐回答(3个)
回答1:

Dim N As Integer, A As Double
N = 10
A = 1
For i = 2 To N
A = A * i
Next i
Print A

回答2:

n=6
a=1
for i=2 to 6
x=x & "*" & i
next

x=n & "!=" & x

结果:6!=1*2*3*4*5*6

回答3:

不会