+ 1
7%(5//2)
someone please help me out
3 odpowiedzi
+ 6
5//2 = 2 since 5 = 2×2+1 (number of times 2 fits in 5)
7%2 = 1 since 7 = 3x2 +1 (rest part after devision)
https://code.sololearn.com/cN4gPuhaXnbX/?ref=app
0
1
0
5 // 2 = 2.5 tomas el entero R = 2
________
7%2 = 3.5 pero el primer residuo es 1
3
--------
2 I 7
1 <---
R=1