bequbed / factorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factorial Calculator

This Python program calculates the factorial of a non-negative integer. The factorial of a non-negative integer n, denoted as n!, is the product of all positive integers less than or equal to n.

How to Use

  1. Run the factorial.py script by executing the following command in your terminal or command prompt:

  2. You will be prompted to enter a non-negative integer.

  3. The program will calculate and display the factorial of the entered number.

Example

Note

  • Factorial is not defined for negative numbers. If you enter a negative number, the program will raise a ValueError.

Author

[bequbed]

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

License:MIT License


Languages

Language:Python 100.0%