0
X%y what does it mean?
Example: 4%2.. How do I have to calculate it?
5 odpowiedzi
+ 2
that is modulus, reminder of the division.
example the division 5 % 2 = 1 . because 5 % 2 get 2 and reminder 1. so 4%2 = 0
+ 1
% is the result minus the rest
4%3 = 1
+ 1
4℅2=0 because ℅ means remainder
0
Ah ok thank you.
0
that is called modulo or modulus operator in programming by which we can get the reminder between two variables