The problem

You can determine where a year is a leap year if the year is divisible by 4. However, years that are also divisible by 100 are not leap years unless they are also divisible by 400, in which they are leap years. Write the psuedocode to determine for a year entered to be a standard year or a leap year. You should be able to repeat the entering of years as long as 0000 is not entered.

Print PDF

Topics

1. User Input
2. While
8. For
11. If Else

Languages

1. Any