I have written inside addTenPercent(int i){ double result = (i/100 * 10) + i; return result } .. ..... ....... What's wrong?