Skip to content

moeinebrahimzade89/Factorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔢 Factorial Calculator

A simple and efficient Python script to calculate the factorial of any given integer.


🛠️ Technologies Used

  • Language: Python 3.x
  • Libraries: Standard Library (No external dependencies required)

✨ Features

  • 📥 User-Friendly Input: Prompts the user to enter a number directly from the console.
  • Fast Computation: Uses an optimized loop-based approach to calculate the factorial.
  • 🛡️ Zero External Dependencies: Written in pure Python, making it lightweight and easy to run anywhere.

🚀 Installation & Usage

To run this project locally, follow these simple steps:

  1. Prerequisites: Make sure you have Python installed on your system. You can check this by running:
    python --version
  2. Clone or Download: Save the Factorial.py file to your local machine.
  3. Run the Script: Open your terminal or command prompt, navigate to the directory containing the file, and execute:
    python Factorial.py

💻 Input & Output

Here is an example of how the program takes input and displays the result:

Input:

:5

Output:

120

About

This program calculates the factorial of a number.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages