Note:
% is Modulus,
So it's taken as num mod 7, if that evaluates to 0 there is no reminder therefore divisible by 7.
9.2m questions
11.9m answers