Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions C Programming/leapyear.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#include <stdio.h>

int main()
{
int year;
printf("Enter a Year You Want Check It Is Leap Year Or Not\n");
scanf("%d", &year);
if (year % 400 == 0)
{
printf("%d is a Leap Year", year);
}
else if (year % 100 == 0)
{
printf("%d is Not a Leap Year", year);
}
else if (year % 4 == 0)
{
printf("%d is a Leap Year", year);
}
else
{
printf("%d is Not a Leap Year", year);
}
return 0;

// Pull By khushbu078
}