a/b*b+a%b == a. Setting a = 5 and b = 2, the answer should be 6, not 5, why is

QQQ

New member
this not true?
This is for C++.

a/b*b+a%b == a

But setting a = 5 and b = 2, the answer should be 6, not why. Why does it output a 5?
 
Back
Top