Question: > 2. (Please do not copy code from any other source. Answer only to what is given in the Question) A year is a leap
> 2. (Please do not copy code from any other source. Answer only to what is given in the Question) A year is a leap year in this century and previous century if it is divisible by 4, Writea program that calculates whether a year is a leap year. Input: The year in 4 digits between 1901 and 2099. You need to check the input greater than 2099 then use a loop to generate a warning message saying that the input is invalid and ask the user to keep entering another input until the input is valid year. When the input year is less than than 1901 or Output: Yes it's a leap year OR No., it's not a leap year Enter answer.. Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
