//this is a program to check whether the entered year is a leap year or not
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
printf("\n\nEnter the year: ");
scanf("%d",&year);
if(year%4==0)
{
printf("\n\nThe Entered Year %d is a leap Year",year);
}
else
{
printf("\n\nThe entered year is not a leap year");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
printf("\n\nEnter the year: ");
scanf("%d",&year);
if(year%4==0)
{
printf("\n\nThe Entered Year %d is a leap Year",year);
}
else
{
printf("\n\nThe entered year is not a leap year");
}
getch();
}