/*C++ program to find the leap year or not*/

#include<iostream.h>
#include<conio.h>
void main()
{
int year;
clrscr();
cout<<“enter the year:”;
cin>>year;
if(year%4==0)
{
cout<<“given year is a leap year”;
}
else
{
cout<<“given year is not a leap year”;
}
getch();
}

38,441 total views, 48 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

3,227 Thoughts to “C++ program to find the leap year or not”

  1. I think the admin of this website is genuinely working hard in favor of his
    site, since here every stuff is quality based material.

  2. It’s really a cool and useful piece of information. I am satisfied that you just shared this helpful info with us. Please keep us up to date like this. Thank you for sharing.

Leave a Reply to Lelio Junior Cancel reply