I cannot understand quotient and remainder stuff | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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
Aditya Tyagi
5 Réponses
+ 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
Arctic Fox - avatar
+ 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
Nilesh - avatar
+ 2
Please tell your programming language. So, that we can help you
5th Jul 2020, 7:56 AM
Arctic Fox
Arctic Fox - avatar
0
It's python
5th Jul 2020, 8:00 AM
Aditya Tyagi
0
Know what is remainder and quotient ghe thing is I just started python and i can't understand it in python terms
5th Jul 2020, 8:05 AM
Aditya Tyagi