AD4BP

Write a programe for decide the entered year is leap year or not?

#include< stdio.h >
#include< conio.h >

void main()
{
int a;
clrscr();

printf("Enter year:");
scanf("%d",&a);

if(a%4==0 && a%100==0)
{
printf("Year %d is leap year");
}

else
{
printf("Year %d is not leap year");
}
getch();
}