main()
{
int
y;
scanf("%d",&y);
// input given is 2000
if(
(y%4==0 && y%100 != 0) || y%100 == 0 )
printf("%d is a leap year");
else
printf("%d is not a leap year");
}
Answer:
2000 is
a leap year
Explanation:
An ordinary
program to check if leap year or not
Blog Author: Vijay Kumar
Correction : if( (y%4==0 && y%100 != 0) || y%400 == 0 )
ReplyDelete