Okay so im doing some problems that involve the modulo operator. I get it but I would like someone to explain a specific problem for me.
24%10= The answer is 4 BECAUSE THE REMAINDER IS 4.
50%50= The answer is 0 BECAUSE THE REMAINDER 0.
78%10= The answer is 8 BECAUSE THE REMAINDER IS 8.
So how in the world is 12%5=2? The answer is 2.4 meaning the answer should be 4. Im also a rookie to c++ so there is a possibility that im missing something simple. Thanks