Python Program To Find a Factorial Of Number - CodexRitik

Python Program To Find a Factorial Of Number 

  • Explanation:
Input = 4
Output = 24
Factorial(4!) = 1 x 2 x 3 x 4

  • Code:
#Find a factorial of number
Num=int(input('Enter the number:'))
factorial=1
for i in range(1,Num+1):
    factorial*=i
print('Factorial of Number:',factorial)


  • For Image View Of Compiled Program 👇
                                                       
Find Factorial Of Number in Python
                                               🙏THANKS FOR VISIT🙏







Python Program To Find a Factorial Of Number - CodexRitik Python Program To Find a Factorial Of Number - CodexRitik Reviewed by CodexRitik on June 23, 2020 Rating: 5

1 comment:

Powered by Blogger.