(10//3*3+10%3) is 10 but if multiplication is the higher order why isnt this 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(10//3*3+10%3) is 10 but if multiplication is the higher order why isnt this 2

4th Aug 2019, 11:08 PM
kbeach
kbeach - avatar
2 Answers
0
(10//(3)*3)+(10%3) 10 %3 10//3 3*3 9 +1 late post. What Gordon said lol
4th Aug 2019, 11:18 PM
James
James - avatar
+ 4
// is of same precedence as * so, 10//3 first, and then the result *3, so result of 10//3*3 is 9
4th Aug 2019, 11:15 PM
Gordon
Gordon - avatar