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