"How long is a year?" "365 days, right?" "Not exactly." "Ah yes, leap years, so 365.25 days." "Nope. It's actually about 365.242199 days!" Create a leap year checker. The user enters a year and the program tells if the given year is a leap year or not. Added bonus: Code Golf means use a few blocks as possible to complete the task. Hint: use modular arithmetic. Good luck!
This program DOES NOT WORK! Your job is to make it work! :) For more info: https://www.mathsisfun.com/leap-years.html https://en.wikipedia.org/wiki/Leap_year (there's an algorithm here) Test Cases: 2016 is a leap year 2015 is not a leap year 2000 is a leap year 2100 is not a leap year