Program to find that entered year is leap year or not

Write a c Program to find that entered year is leap year or not

#include<stdio.h>
void main()
{
int x;

printf(“enter any year: ”);
scanf(“%d”,&x);
if(x%4==0)
printf(“year is a leap year\n”);
else
printf(“year is not a leap year\n”);
}

Related Posts