https://github.com/patilyashh/factorial-with-recursion
Day 13 of 75 Days C programing challenge || #13 ||
https://github.com/patilyashh/factorial-with-recursion
Last synced: 30 days ago
JSON representation
Day 13 of 75 Days C programing challenge || #13 ||
- Host: GitHub
- URL: https://github.com/patilyashh/factorial-with-recursion
- Owner: PATILYASHH
- Created: 2024-02-23T16:34:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T16:46:56.000Z (over 2 years ago)
- Last Synced: 2025-03-02T16:22:16.648Z (over 1 year ago)
- Language: C
- Size: 81.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Factorial Calculator
This is a simple C program that calculates the factorial of a given number using recursion.
## How to Use
1. **Fork the Repository:**
Fork this repository to your own GitHub account by clicking the 'Fork' button at the top right of this page.
2. **Clone the Forked Repository:**
git clone https://github.com/PATILYASHH/factorial-with-recursion
3. **Compile the Program:**
```
gcc factorial.c -o factorial
```
4. **Run the Program:**
```
./factorial
```
5. **Follow the Prompts:**
Enter a number when prompted to calculate its factorial.
## Example
Enter a number: 5
Factorial of 5 is 120
## Note
- This program uses recursion to calculate factorials.
- Make sure you enter a non-negative integer for accurate results.
- The program may not handle very large numbers due to limitations in the data types used.