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