Factorial of a number using loop and recursion in python


Python program to find the factorial of a number using for Loop

In [1]:
Enter a number: 7
Factorial of:  7 is:  5040

Factorial of a Number using Recursion

In [2]:
Enter a positive number: 6
Factorial of:  6  is:  720

No comments:

Post a Comment