Leapyear

// Check if year is leap or not
#include<stdio.h>
#include<conio.h>
void main()
{
int y;
clrscr();
printf("\n Enter a year:-");
scanf("%d",&y);
if(y%4==0)
{
printf("\n The year is Leap");
}
else
{
printf("\n The year is not Leap year");
}
}

No comments:

Post a Comment