← All problemsSign in

Program to check Leap year or not

Program to check Leap year or not Year is a Leap Year or Not Generally, we assume that year is exactly divisible by 4 is a leap year. But it is not only in this case 1900 is divisible by 4. But it is not a leap. If any of the below two conditions are trye then year is leap year – If year is perfectly divisible by 400 If a year is divisible by 4 but not 100 These all conditions are true then ye

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start