leap year


Program to find out whether the entered year is Leap year





#include <iostream.h>

#include <conio.h>

int main()

{

int year;

cout<<"Enter the desired year: ";

cin>>year;

if (year%4==0)

cout<<year<<" is leap year.";

else

cout<<year<<" is not a leap year. ";

getch();

return 0;

}


No comments :

Post a Comment