1wulong @ 2022-09-12 11:51:48
x=int(input()) y=1 while x>=1: y=x*1*y x=x-1 print(y)
请帮忙解答一下,谢谢!
by wf715 @ 2022-09-12 11:54:02
你这只是求阶乘,没求和
by 1wulong @ 2022-09-12 12:04:52
@wf715 谢谢!
by wf715 @ 2022-09-12 12:08:00
@1wulong 不用