% to test whether a year divides by 4, 100 and 400, and combine the tests with and, or and not to follow the full leap-year rule.
Open Lab 9 in the IP Lab Portal
What you will practice
- Use
%to test divisibility - Combine conditions with
and,or, andnot - Check years like 1900, 2000, and 2024
Before you start
Time
20 minutes
Where
IP Lab Portal
Module
Module 4: Conditional execution
- In the IP Lab Portal, open Lab 9 - Leap year checker.
- In class, this lab comes right after the Lesson 5 recap slide in Module 4 core material.