Need help with maple(nested if blocks) Before 1752 there is a leap year for every four years according to the Julian calander. Namely if the year is divisible by 4, there are 29 days in Feburary. Since the Gregorian calander is adopted in England in 1752, the leap year rule has been changed as follows: If the year is divisible by 4, it is a leap year except if it is divisble by 100. If the year is divisble by 400, however, it is again a leap year. Write a program that, for input years, outputs true or false depeding on the year to be a leap year or not.
Post in computer science.
i did post it there as well
Here's a rough plan: Input year -Divisible by 4? No=> false, Yes=> continue. -Divisible by 100? No=> true, Yes=> continue. -Divisible by 400? Yes=> true, No=> false.
i need a little bit more help, cause i am lost with the format of the nested if blocks. I am really having a hard time with this.
|dw:1347199947614:dw|
Join our real-time social learning platform and learn together with your friends!