An open API service indexing awesome lists of open source software.

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 ||

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.