Example 11: Check if a Given Year Is a Leap Year
Learn to identify a leap year using conditional statements.
We'll cover the following...
Problem
Write a program that takes a year as an input and decides and then prints whether it is a leap year or not.
You should print the output on the console in the following manner:
- Leap year
- Not a leap year