# Program to input n and get output factorial of n:
n=input("Enter the value of n:")
s=1
n=int(n)
for i in range (1,n+1):
s=s*i
print("The value of the factorial of",n,"is:",s)
n=input("Enter the value of n:")
s=1
n=int(n)
for i in range (1,n+1):
s=s*i
print("The value of the factorial of",n,"is:",s)
Comments
Post a Comment