repl.it
@sclanc20/

4.6. For: Factorial

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
number = int(input())
factorial = 1

for i in range (1,number+1):
  factorial = factorial*i
  
print(factorial)
Fetching token
?