+ 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

13th Feb 2020, 11:54 PM
Matheus Gomes
4 Respostas
+ 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?
14th Feb 2020, 12:02 AM
Gordon
Gordon - avatar
+ 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.
14th Feb 2020, 1:03 AM
Paul K Sadler
Paul K Sadler - avatar
+ 1
29= 5 * 5 + 4 29// 5 returns 5 29 % 5 returns 4 I think that is :/
14th Feb 2020, 1:18 AM
Matheus Gomes
+ 1
Matheus Gomes 👍👍👍 💯
14th Feb 2020, 3:36 AM
Gordon
Gordon - avatar