#include <stdio.h>
int main() {
int year;
// Input the year
printf("Enter a year: ");
scanf("%d", &year);
// Check if it's a leap year
if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
printf("%d is a leap year.\n", year);
} else {
printf("%d is not a leap year.\n", year);
}
return 0;
}TECHDESIGN
Check leap year using C programming

Check leap year using C programming
byManish Tamang

Manish Tamang is Digital Designer & Frontend Developer. Focusing on creating immersive digital experiences. He has over 5 years of experience building interfaces that people love.
