← TCS questions

Check if N is a Leap Year

Filed under TCS

Given an integer `N` representing a year, write a program to determine whether it is a leap year. A year is a leap year if it is evenly divisible by 400, or if it is divisible by 4 but not by 100…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.