Question 2 (Lab 3.1.1.12) Write a code to determine if a year is a leap or a common year, use the following rules: 1- If
Posted: Thu May 26, 2022 9:07 am
Question 2 (Lab 3.1.1.12) Write a code to determine if a year is a leap or a common year, use the following rules: 1- If the entered year is before year 1582, show the message "Not within the Gregorian calendar" ), then exit the program. 2- If the year number isn't divisible by four, it's a common year; 3- otherwise, if the year number isn't divisible by 100, it's a leap year; 4- otherwise, if the year number isn't divisible by 400, it's a common year; 5- otherwise, it's a leap year. You code ***** Pago