C Program to Check Leap Year

C Programming Tutorial

   A year is a leap year if − It is evenly divisible by 100 If it is divisible by 100, then it should also be divisible by 400 Except this, all other years evenly divisible by 4 are leap years. —————————————————————— #include <stdio.h> int main() { int year; printf(“Enter a year: “); scanf(“%d”,&year); if(year%4 … Read more