Write a program to check year is leap year or not

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

No comments:

Post a Comment