Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 402 Bytes

File metadata and controls

15 lines (12 loc) · 402 Bytes

🚀 Factorial of a Number

📝 Task Description

Create a program to calculate the factorial of a given number. The program should take an integer input and return its factorial. Factorial is the product of all positive integers less than or equal to the given number

Example: Factorial of 5 5! = 5 * 4 * 3 * 2 * 1 5! = 120

📤 Sample Output

Enter a Number: 5
The Factorial is: 120