>>>7%(5//2) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

>>>7%(5//2)

How to solve

4th Apr 2018, 9:01 PM
Danny.P
Danny.P - avatar
4 Réponses
+ 3
5//2 is 2 because we take floor from 5/2=2.5, then we take 7%2=1 because 7=2*3+1.
4th Apr 2018, 9:05 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 2
Bartosz You are right! Here is the Python one then. He is studying both C++ and Python anyway. ‚ėļ https://www.tutorialspoint.com/python/operators_precedence_example.htm
4th Apr 2018, 9:50 PM
cyk
cyk - avatar
+ 1
cyk It is python.
4th Apr 2018, 9:48 PM
Bartosz Pieszko
Bartosz Pieszko - avatar
0
Here is a link about operators precedence in C++... It might come in handy when you try to figure these kind of things out http://en.cppreference.com/w/cpp/language/operator_precedence
4th Apr 2018, 9:47 PM
cyk
cyk - avatar