Header Ads

Python Program to Find the Factorial of a Number Using While Loop

In This Program We Learn Find the Factorial of a Given Number Using While Loop in Python Language


Python, even, odd, prime, Program, Find, Factorial,Number, While, Loop, python program, find factorial, find factorial in python,  Factorial of a Number Using While Loop,Python Program to Find the Factorial of a Number Using While Loop

Example: Code Program


num = int(input("Enter Number to Find Factorial:")) 
f =
i =
if num <= 1:    
        print(1
while i <= num:     
       f *= i     
       i +=
print("The Factorial of ",num, " is ",f)

Output

Python, even, odd, prime, Program, Find, Factorial,Number, While, Loop, python program, find factorial, find factorial in python,  Factorial of a Number Using While Loop,Python Program to Find the Factorial of a Number Using While Loop

No comments

Powered by Blogger.