Where’s the problem?
You have a third variable (possibly const) containing the amount by which to change both other values. Then you subtract it from one value and add it to another.
Where’s the problem?
You have a third variable (possibly const) containing the amount by which to change both other values. Then you subtract it from one value and add it to another.