Question: Problem 3: A common Gregorian year has 364 days and 6 hours. A leap year is a year that is multiple of 400 or it

 Problem 3: A common Gregorian year has 364 days and 6

Problem 3: A common Gregorian year has 364 days and 6 hours. A leap year is a year that is multiple of 400 or it is a multiple of 4 but not a multiple of 100. A leap Gregorian year has 365 days: one day is added to the month of February, which will have 29 days. Write a MATLAB program to check whether a year entered by a user is leap or not. Example of leap years: 2000, 2004, 2008, 2012, 2016, 2020. Example of common years (not leap): 1900 (divisible by 4 and by 100)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!