https://github.com/patilyashh/leap-year
Day 15 of 75 Days C programing challenge || #15 ||
https://github.com/patilyashh/leap-year
Last synced: 30 days ago
JSON representation
Day 15 of 75 Days C programing challenge || #15 ||
- Host: GitHub
- URL: https://github.com/patilyashh/leap-year
- Owner: PATILYASHH
- Created: 2024-02-25T16:25:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T16:31:08.000Z (over 2 years ago)
- Last Synced: 2025-03-02T16:22:15.032Z (over 1 year ago)
- Language: C
- Size: 79.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leap Year Checker
This is a simple C program that checks whether a given year is a leap year or not.
## How to Use
1. **Compile**: Compile the program using a C compiler. For example, if you're using gcc, you can compile it with the command:
```
gcc leap_year_checker.c -o leap_year_checker
```
2. **Run**: Run the compiled program and follow the instructions to enter a year.
```
./leap_year_checker
```
3. **Input**: Enter a year when prompted.
4. **Output**: The program will then output whether the entered year is a leap year or not.
## Logic
The program checks whether the input year is divisible by 4 but not divisible by 100 unless it's also divisible by 400. This logic follows the rules for determining leap years.
## Example
Enter Your Year : 2024
2024 is a Leap Year
## Contributing
Feel free to contribute to this project by submitting bug reports, suggestions, or enhancements through GitHub issues or by creating a pull request.