www.cprogramming.tk

www.cprogramming.tk

Program that get a year and find whether year is Leap year or not

using namespace std;
Aprogram that enter a year and find whether the year is a Leap year or not.


#include<iostream>
#include<conio.h>
int main()
{
    int year;
    cout<<"Enter any Year:";
    cin>>year;
    if(year%4==0)
      cout<<year<<" is a leap year";
    else
 cout<<year<<" is not a leap year";
   getch();      
   return 0;
}


we can also make a program as:
leap year calendar
Program that get a year and find whether year is Leap year or not Program that get a year and find whether year is Leap year or not Reviewed by Shoaib Jameel on 3/08/2017 05:52:00 pm Rating: 5

No comments:

Theme images by mariusFM77. Powered by Blogger.