Conditionals Problems
Leap Year Expressions
In this problem, use an if-else block to decide if 1988 is a leap year. To build the boolean expression for this, the year must be divisible by four and the year must not be divisible by one hundred or is divisible by four hundred. Use this information to add to the basic expression already in the program.
Use mod to determine if the year is divisible by an number. For example, the first expression to determine if year is divisible by four would be year mod 4 = 0
. Aslo, for the second part of the expression, use not=
to determine if the year is not divisible by 100.