#include<stdio.h>
#include<conio.h>
void main()
{
int y;
clrscr();
printf("Enter any year = ");
scanf("%d",&y);
if(y%4!=0)
printf("Not leap year.");
else if(y%100!=0)
printf("Leap year.");
else if(y%400!=0)
printf("Not leap year.");
else
printf("Leap year.");
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........