Ruby: divisible by 4 December 7, 2023 by Tarik Try this: if i % 4 == 0 This is called the “modulo operator”.