I suggest that you change

salary += ((salary / 100) * 10);
salary += (salary * 0.10);

I suspect that although the variable, salary, was specifically assigned as a double, the type was dynamically changed as a result of the expression, because the expresssion resulted in a whole number.

JamesCherrill commented: That's not how Java evaluates mixed float/int expressions -3

[QUOTE=Mellopv13;1394268]Given positive intergers a and b, find their greatest common divisor, their least common multiple and intergers s and t such that sa + tb = gcd(a,b)[CODE][/CODE][/QUOTE]
Hi there.
I don't know the answer to your question but I think you mean integers not intergers.
M