Question: 2. To determine whether a year is a leap year, follow these (Are there better algorithms? Sure! Use the one provided ( https://support.microsoft.com/en-us/help/214019/method- to-determine-whether-a-year-is-a-leap-year

2. To determine whether a year is a leap year, follow these

2. To determine whether a year is a leap year, follow these (Are there better algorithms? Sure! Use the one provided ( https://support.microsoft.com/en-us/help/214019/method- to-determine-whether-a-year-is-a-leap-year ).) steps: 1. If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5. 2. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4. 3. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5. 4. The year is a leap year (it has 366 days). 5. The year is not a leap year (it has 365 days).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine whether a year is a leap year using the algorithm provided by Microsoft you can follow ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!