Hi there. Given a variable Y which stores a year in the 20th century (between 1901 and 2000), write MATLAB code to create a variable Days and assign it a value of 366 if the year is a leap year or a value of 365 otherwise.
MATLAB: If else condition to determine if a year is a leap year
homeworkif else construct to determine if a year is a leap year or notleap year
Best Answer