输入1 - 10的整数,计算这个数的阶乘

myinput = int(input(“请输入1-10的整数:”))

i=1

s=1

while i<=myinput:

s=s*i

i+=1

print(s)

猜你喜欢

转载自blog.csdn.net/weixin_43290492/article/details/90144309