In This Program We Learn Find the Factorial of a Given Number Using While Loop in Python Language
Example: Code Program
num = int(input("Enter Number to Find Factorial:")) f = 1 i = 1 if num <= 1:
print(1) while i <= num:
f *= i
i += 1 print("The Factorial of ",num, " is ",f)
Post a Comment