for i in range(5):
print(i)
0 1 2 3 4
for i in range(5,10):
print(i)
5 6 7 8 9
for i in range(5,20,2):
print(i)
5 7 9 11 13 15 17 19
n=int(input("Enter the number: "))
b=1
for i in range(1,n+1):
b=b*i
print(n,"! = ",b)
Enter the number: 5 5 ! = 120