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