Write a program that checks if a year is leap.
A year is considered leap if it is divisible by 4 and NOT divisible by 100, or if it is divisible by 400. So, 2000 is leap and 2100 isn't.
Output either "Leap" or "Ordinary" depending on the input.
Write a program that checks if a year is leap.
A year is considered leap if it is divisible by 4 and NOT divisible by 100, or if it is divisible by 400. So, 2000 is leap and 2100 isn't.
Output either "Leap" or "Ordinary" depending on the input.
Sample Input 1:
2100Sample Output 1:
OrdinarySample Input 2:
2000Sample Output 2:
LeapCreate a free account to access the full topic