Numeric operation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Numeric operation

Pls help me with this.. how 7%(5//2) turnout to be 1?

29th Jan 2018, 4:47 PM
UniWave
UniWave - avatar
1 Answer
0
5//2 results in 2. % gives you the remainder.. 7%2 is 1. 2, 4, 6... 1 is the remainder
29th Jan 2018, 4:50 PM
LordHill
LordHill - avatar