计算并输出9的阶乘!JX=1N=1DO WHILE[ ]JX=JX*N[ ]ENDDO'9!='+'1*2*3*4*5*6*7*8*9='+[ ]

问题描述:

计算并输出9的阶乘!
JX=1
N=1
DO WHILE[ ]
JX=JX*N
[ ]
ENDDO
'9!='+'1*2*3*4*5*6*7*8*9='+[ ]

a=1
b="1"
for i=2 to 9
a=a*i
b=b & "*" & i
next
print "9!=" & b & "=" & a
结果:9!=1*2*3*....*9=362880

9的阶乘为362880

JX=1
N=1
DO WHILE N