Quote:
result = (c * (15 / 100));
Quote:
result = (c * (28 / 100));
The expressions on the right hand side of the above statements are evaluated using integer math. Change them to (for instance)
result = (c * (15.0f / 100));
result = (c * (28.0f / 100));
to force floating point evaluation.