I cannot understand quotient and remainder stuff | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
+ 1

# I cannot understand quotient and remainder stuff

I can't explain it but you can say that i understood nothing in this quotient remainder thing

5th Jul 2020, 7:55 AM
5 Respostas
+ 4
Adding on above answer, "//" floor division. This is used for getting the quotient. As you can see the above example. print(10//4) # prints 2 i.e quotient print (10%4) # prints 2 i.e remainder. print(10/4) # prints 2.5 i.e in decimal form-accurate form
5th Jul 2020, 8:12 AM
Arctic Fox
+ 4
See Let's initialise a value of 10 to a variable a initialise another value of 4 to a variable b. So if ye use % (modulus) to find the remainder and / for quotient š 4|10|2 - quotient - 8 --------- 2. remainder --------- so here the remainder is 2 and the quotient is also 2. Have a look https://www.math-only-math.com/dividend-divisor-quotient-and-remainder.html
5th Jul 2020, 7:59 AM
Nilesh
+ 2