Python program for finding factorial

 # Find factorial of a number

num = int(input("Enter a number: "))

factorial = 1

for i in range(1, num + 1):

    factorial *= i

print(f"Factorial of {num}: {factorial}")


Comments

Popular posts from this blog

C Program to implement GAUSS' FORWARD INTERPOLATION FORMULA

c Program to implement GAUSS' BACKWARD INTERPOLATION FORMULA

Program to implement BESSELS INTERPOLATION FORMULA in C