This is my code:
public int raiseSalary (int percent){
return salary + (salary*(percent/100))
} // here the output is 5000 (every time the output is the same salary)
When I run the program with EX: 5000 salary and raise by 10% it should by 5500
But
The strange thing here when I reweite the code in the following form it’s work correctly!
public int raiseSalary (int percent){
return salary + (salary* percent/100)
} //here the output is 5500 which is true
What is the problem with first code!