According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give 'true' if the given year is a leap year and 'false',if not.
Note: In the Gregorian calendar 3 criteria must be taken into account to identify leap years:
The year is evenly divisible by 4; If the year can be evenly divided by 100, it is NOT a leap year, unless; The year is also evenly divisible by 400. Then it is a leap year.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers239
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53274 Solvers
-
Find the sum of all the numbers of the input vector
54681 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2052 Solvers
-
Back to basics 25 - Valid variable names
339 Solvers
-
798 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Kumar, in problem #4 there is one to many right parenthesis. George...
Actually I just realized it is the "isequal" is missing in test #4.
Thanks George.Am extremely sorry for that.I just corrected it.