Test for remainder value of 0

The conditional clause in the if statement in Listing 4 tests to determine if the remainder is 0.