i want to know equation of quotient and remainder | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

i want to know equation of quotient and remainder

29th Sep 2016, 6:23 AM
aditya srivastava
aditya srivastava - avatar
2 Respuestas
+ 1
quotient=a//b remainder =a‚ĄÖb
29th Sep 2016, 7:07 AM
J C Karthikeyan
J C Karthikeyan - avatar
+ 1
This is a tricky concept. The way it works is that if you use the two slashes // it will divide your numbers without leaving a remainder. For example if you if you do 9//3 your output will be 3 If you do 10//3 your output will still be 3 11//3 your output will also be 3. Now once you get to 12//3 your output will be 4. 13//3 also 4. Basically it divides it and cuts off all but the whole number. Using the % just figures out what the remainder is and then it only lists the remainder. So if you do 9%3 your output would be 0 10%3 your output would be 1 11%3 your output would be 2 12%3 your output would be back to 0. For % all you are going to have left is the remainder. I hope this has been helpful to some of you.
6th Oct 2016, 12:15 AM
Brandon Wegner
Brandon Wegner - avatar