def fact(number):
mult = 1
for i in range(1, number + 1):
mult *= i
return mult
num = 0
while True:
num += 1
n = fact(num)
if n > 2000:
print(n)
break
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def fact(number):
mult = 1
for i in range(1, number + 1):
mult *= i
return mult
num = 0
while True:
num += 1
n = fact(num)
if n > 2000:
print(n)
break