/*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,443 total views, 50 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. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your website? My website is in the exact same area of interest as yours and my visitors would genuinely benefit from some of the information you provide here. Please let me know if this okay with you. Thanks!|

  2. Hmm is anyone else experiencing problems with the images on this blog loading?
    I’m trying to figure out if its a problem on my end or if
    it’s the blog. Any feed-back would be greatly appreciated.

  3. I don’t know if it’s just me or if everyone else encountering problems with
    your blog. It looks like some of the written text in your content are running off the screen. Can someone else please provide feedback and let
    me know if this is happening to them as well? This might
    be a problem with my browser because I’ve had this happen previously.
    Many thanks

Leave a Comment