+ 14
how to do modulus operator
I haven’t learned the modulus operator yet, can anyone explain it?
3 Respostas
+ 8
It's a math operation that gets the remainder of 2 numbers after division.
E.g. 5 % 2 = 1
5 / 2 = 2 remainder 1
0
% Modulus operator it'd used to calculate remaining.