#include <stdio.h>
int main() {
int a;
printf("\nEter a year to check is it leap year or not");
scanf("%d",&a);
if(a%4==0)
printf("\n %d is leap year",a);
else if(a%4!=0)
printf("\n %d is not a leap year",a);
else
printf("\n %d is wrong choice",a);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: