Menu


.

Write a program to find whether year is leap year.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a;

cout<<"Please enter the year";

cin>>a;

if(a%4==0 || a%400==0)

cout<<"It is leap year";

else

cout<<"It is not leap year";

getch();

}




Enjoy our courses Today