write a program to print the factorial of N .Factorial is the product of all positive integers less than or equal to N
N = int(input("Enter a number: "))
factorial = 1
if N >= 1:
for i in range (1,N+1):
factorial = factorial * i
print(f"Factorail of {N} is: {factorial}")
Comments
Leave a comment