0
Loan Calculator
I donât understand, why this Code doesnât work. import java.util.Scanner; public class Program { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int amount = scanner.nextInt(); //your code goes here int months = 3; for (int i = 0; i < months; i++) { amount = amount * 90 / 100; System.out.println(amount); } } }
2 Answers
+ 4
You should print outside the loop
+ 1
Now it works. Thx for Help!!!