I'm confused on quotient and reminder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I'm confused on quotient and reminder

Like modulo and %

24th Aug 2019, 12:10 AM
Kirschtein Skull
Kirschtein Skull - avatar
2 Answers
+ 2
That returns the remainder of a division! For example 10%2=0 because 10/2 =5 and there is no remainder. Other example is 10%3=1 because 10/3=3(the integer part) so 3*3=9 and the remainder is 1
24th Aug 2019, 12:23 AM
Lighton
Lighton - avatar
+ 4
It's nothing but arithmetic from the 3rd grade or so.
24th Aug 2019, 1:20 AM
Sonic
Sonic - avatar