+ 1
Guys I have a question , I don't understood the class about Quotient & Remainder
I am Brazilian so , some words or some explanation are more difficult for me
4 Respuestas
+ 2
29 = 3 * 9 + 2
so 29 // 3 returns 9
so 29 % 3 returns 2
29 = 7 * 3 + 8
so 29 // 7 returns 3
so 29 % 7 returns 8
now, quiz for you, what does 29 // 5 and 29 % 5 returns?
+ 1
Matheus Gomes so think of the quotient as there are 9 (the quotient) 3's in 29 with 2 being the remainder. In 29 there are 3 (the quotient) 9's with a remainder of 2. So when dividing 29 by 3, 9 is the quotient and when dividing 29 by 9, 3 is the quotient.
+ 1
29= 5 * 5 + 4
29// 5 returns 5
29 % 5 returns 4
I think that is :/
+ 1
Matheus Gomes 👍👍👍 💯