C program to find enter Year is a Leap Year or not

      No Comments on C program to find enter Year is a Leap Year or not
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x;
printf("Enter Year:- ");
scanf("%d",&x);
if(x%4==0)
{
printf("Entered year is a leap Year");
}
else
{
printf("Entered year is not a leap Year");
}
getch();
}

OUTPUT:-

scanfcode

Leave a Reply

Your email address will not be published. Required fields are marked *