1:59 PM
C++ Program of CHECKING LEAP YEAR

Write a Program to CHECKING LEAP YEAR

#include<iostream.h> 
#include<conio.h> 
 
void main()
{
int year;
clrscr();
printf("Enter any year->");
scanf("%d",&year);
if(((year%4==0)&&(year%100!=0))||(year%400==0))
printf("%d is a leap year",year);
else
printf("%d is not a leap year",year);
getch();
}
 
Note:
      If you want to change in this program please write through the comment on this page. you can also past similar program 
                 of c++ with output.your comment is valuable to the other user and person.
 
Views: 98 | Added by: vijoriya | Tags: Checking, c++, Leap Year, program | Rating: 0.0/0
Total comments: 0
avatar