0
Loan Calculator help
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int amount = scanner.nextInt(); for(int x = 1; x <= 6; x++) amount= amount - (amount * 10 / 100); System.out.println(amount); } } this code is always one off the correct number
1 Answer
- 1
Sparky
Just do this
amount = amount * 90 / 100;