C PROGRAM TO CHECK WHETHER LEAP YEAR OR NOT
/* PROGRAM TO CHECK WHETHER LEAP YEAR OR NOT */
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
printf(" \n ENTER THE YEAR : ");
scanf("%d",&a);
if(((a%4==0)&&(a%100!=0))||(a%400==0))
printf("\n %d IS A LEAP YEAR",a);
else
printf("\n %d IS NOT A LEAP YEAR",a);
getch();
}
For more C programs - click here