Chapter 1
Manipulating and Checking Values
Section 2
Checking Multiple of a Number
Up to Swift 4.2, the way we checked if one number is a multiple of another number, was to use the remainder operator and then check if the remainder is 0. If the remainder is zero, then we can be certain the larger number is a multiple of the smaller number. However, the issue with this approach is that we had to check, if the smaller number is not a 0 itself and also the code is longer, and the remainder operator was not designed for this purpose.