Question: Use Matlab only and explain what you did 10. Write a program that accepts a year as user input and determines whether the year is
10. Write a program that accepts a year as user input and determines whether the year is a leap year. The output should display something like Input Year IS a Leap Year or Input Year IS NOT a Leap Year. The rules for determining leap years are as follows: a. All years evenly divisible by 400 are leap years. b. Years evenly divisible by 100 but not by 400 are not leap years. c. Years divisible by 4 but not by 100 are leap years. 4. All other years are not leap years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
