Quotient & Remainder | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Quotient & Remainder

7%(5//2) the answer is 1 but i need to know why

11th Sep 2016, 12:32 PM
Kosta Cherniak
Kosta Cherniak - avatar
1 Réponse
+ 1
5//2 is 2 because 5 = (2)*2+1 7%2 is 1 because 7 = 3*2+(1)
11th Sep 2016, 6:22 PM
Zen
Zen - avatar