Just move the print statement outside the loop:
for (int x = 1; x < 6; x = x + 1) { amount = amount * 9 / 10; } System.out.println(amount);
1.4m articles
1.4m replys
5 comments
57.0k users