0

How is 7% (5//2) =1

confused??

5th Feb 2017, 5:33 PM
Aidan Gonçalves
Aidan Gonçalves - avatar
3 Respuestas
+ 1
5 divided by 2 as an integer is 2. The remainder of 7 divided by 2 (modulo) is 1.
5th Feb 2017, 5:49 PM
Blightedsage
Blightedsage - avatar
+ 1
you deal with parenthesis first, 2 goes into 5 2 times. the % is modulo and that's when you put the remainder 2 can go into 7 three times (2x3=6) the remainder is 1 and since modulo only asks for remainder the answer is 1
5th Feb 2017, 10:17 PM
Seth James
Seth James - avatar
0
1 5//2 = 2 2 then 3 7 % 2 = 1 4 thus 5 7%(5//2) =1
9th Feb 2017, 11:06 AM
Esso-Essinam AWOUZOUBA
  Esso-Essinam AWOUZOUBA  - avatar