/*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();
}

71,060 total views, 16 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.

5,622 Thoughts to “C++ program to find the leap year or not”

  1. Hi, I think your blog might be having browser compatibility issues.

    When I look at your website in Ie, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted to give
    you a quick heads up! Other then that, terrific blog!

  2. Nice respond in return of this difficulty with real arguments and explaining everything regarding
    that.

  3. I really like it when folks come together and share thoughts.
    Great blog, continue the good work!

Leave a Comment