C Program to check Leap Year - Source Code

C Program to check leap year

#include int main() { int years; printf("Programmed by Mohd Usman"); printf("\nEnter a Year : \n"); scanf("%d", &years); if (years%400 == 0) { printf("%d is a Leap Year.", years); } else if (years%100 == 0) { printf("%d is not a Leap Year.", years); } else if (years%4 == 0) { printf("%d is a Leap Year",years); } else { printf("%d is a Leap Year", years); } }