Code to check leap year

Code to check leap year


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


OUTPUT



Comments

Popular posts from this blog

Code for pattern 6

Code for febonacci series