Skip to main content

Posts

Showing posts with the label Leap Year

Coding Problem: Check for Leap Year

 Given a number N, the task is to check if N is a Leap Year or not. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is perfectly divisible by 400. Code: