Program to check leap year or not


#include<stdio.h>
#include<conio.h>
int main()
{
int year;
clrscr();
printf("enter the year");
scanf("%d",&year);
if(year%4==0)
printf("year is a leap year");
else
printf("year is not a leap year");
getch();
return 0;
}

0 comments:

Post a Comment