1#Factorial
2'''factorial n! - n* n-1*n-2..1'''
3
4def fac_iterative_method(n):
5 fac = 1
6 for i in range(n):
7 fac = (fac * (i+1))
8 print('fac of',i+1,'=',fac)
9
10number = int(input('enter the number'))
11fac_iterative_method(number)
12