forked from simran122/PROGRAMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLeapyear.c
More file actions
19 lines (12 loc) · 710 Bytes
/
Leapyear.c
File metadata and controls
19 lines (12 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>
int main()
{
int year;
printf("Enter any year: ");
scanf("%d",&year);
if(year%4==0)
printf("%d is a leap year",year);
else
printf("%d is not a leap year",year);
return 0;
}