+ 1

I don't understand what is quotient & remainder

14th Oct 2018, 5:19 PM
Naurin Sarfaraj
Naurin Sarfaraj - avatar
3 ответов
+ 4
x= y(q) + r here q is quotient of x and y. r is remainder. always r<y for python, x//y will give you quotient and x%y will remainder( modulo) . e.g. 25 = 8(3) + 1 3 is quotient and 1 is remainder.
14th Oct 2018, 9:33 PM
Roneel
Roneel - avatar
+ 2
quotient is the result of devision. Remainder is what is left after devision. 7 = 2*3 + 1 quotient of 7 and 3 is 7/3 remainder is the 1
14th Oct 2018, 5:46 PM
davy hermans
davy hermans - avatar
0
thanks guys .......
16th Oct 2018, 4:42 PM
Naurin Sarfaraj
Naurin Sarfaraj - avatar