0

7%(5//2) = ?????

31st Aug 2016, 6:02 PM
Rutvik Patel
Rutvik Patel - avatar
6 Respuestas
+ 4
7%(5//2) % is called 'modulo', which represents the remainder when divided by some numbers. // is called 'floor division', which represents the quotient. Look inside the parenthesis first. (5//2) is 2 (quotient) and then 7%(2) equals to 1 (remainder) So the answer is 1. Just in case if you confuse = with == ; = is an assigning operator used to define something while == is an 'equal' operator.
31st Aug 2016, 7:07 PM
Eunjae Lee
Eunjae Lee - avatar
+ 1
5//2==2 7%2==1
31st Aug 2016, 7:54 PM
Yaroslav Syncha
Yaroslav Syncha - avatar
0
1
1st Sep 2016, 3:18 PM
Кубалов Виталий
Кубалов Виталий - avatar
0
it should be 1
4th Sep 2016, 8:25 AM
Elias Cheung
0
How does 7%2 = 1 ?
3rd Oct 2016, 3:13 AM
scott
0
A better way for me to Phrase my question is what is the purpose of '7? is it an arbitrary number that can be replaced with 'x' or does it have significance
3rd Oct 2016, 3:19 AM
scott