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

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

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.