#include<stdio.h>
#include<conio.h>
main()
{
int n;
clrscr();
printf("\n\n\tEnter a year : ");
scanf("%d",&n);
if((n%400==0)||((n%4==0)&&(n%100!=0)))
printf("\n\n\tGiven year %d is a leap year",n);
else
printf("\n\n\tGiven year %d is not a leap year",n);
return 0;
}
No comments:
Post a Comment