Question: IF and IF - ELSE STATEMENTS ( Scalar data ) Create a FUNCTION file called leapVear.m in which we will solve the following problem: Write
IF and IFELSE STATEMENTS Scalar data Create a FUNCTION file called leapVear.m in which we will solve the following problem:
Write a program that accepts a ycar and determines whether or not the year is a leap year. Use the mod function. The output should be the variahle extraday, which should te I if the year is a leap year and O otherwise. The rules for degermining leap years in the Cirgoriun calendar are:
All years evenly divisible by are leap ycars.
Years cvenly divisible by but noi by are rot leap ycars.
Years divisible by but not by are leap years.
All caher years are not leap years.
For example, the years and are not lesp years, but is a leap year.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
