0
How is 7% (5//2) =1
confused??
3 Answers
+ 1
5 divided by 2 as an integer is 2. The remainder of 7 divided by 2 (modulo) is 1.
+ 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
0
1 5//2 = 2
2 then
3 7 % 2 = 1
4 thus
5 7%(5//2) =1