get the factorial of a number on python code example
Example: get the factorial of a number on python
fac=1
num=6
for i in range(6,0,-1):
fac=fac*i
print(fac)
fac=1
num=6
for i in range(6,0,-1):
fac=fac*i
print(fac)