• admin@embedclogic.com

Program to check whether a year is a leap year or not

Program to check whether a year is a leap or not

Prerequisite:

  • if-else statement
  • C- Operator

Leap Year:

if (a year is divisible by 4) then (it is a leap year)
else (it is a Non-leap year)