+ 1

I really don't understand the modulo operation at all . 😭 help please

30th Jan 2018, 7:38 PM
camila gonzalez
4 ответов
+ 5
The modulo operator is used to find the remainder of a number after the division of the 2 operands. For example: x = 5%2 In the example, we're trying to find the modulus of 5 and 2. What's happening is the computer is first finding the division of the 2 operands, without decimals. This should result to 2 as 2 can fully go into 5 twice. Next, it finds the remainder from the result of the first operand, or in this case, 5. This should result in 1 as 5-4 is equal to 1. Hope this helped!
30th Jan 2018, 7:44 PM
Faisal
Faisal - avatar
+ 1
thanks sooooo muchhh ❤ it helps
30th Jan 2018, 7:47 PM
camila gonzalez
0
hi everyone
3rd Feb 2018, 3:27 PM
Neil Calventas
Neil Calventas - avatar
14th Feb 2018, 3:36 PM
davy hermans
davy hermans - avatar