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