# Lesson goal: Divisibility Tester

Previous: The if-statement | Home | Next: Divisibilty tester (2)

In a past lesson, we learned how to use the % or "mod" operator to test if one number is divisible by another number. In this lesson, we'll extend this idea to a full blown "divisibility tester" that uses in if statement to check the divisibility.

# Now you try. Fix the if statement to have a condition that will be true if d divides evenly into num.

This code will not run. What will you fill into the if statement to test if num is divisible by d? Dismiss.
Show a friend, family member, or teacher what you've done!