Need help for Sololearn's Java "Loan Calculator" practice please...
Hi! I'm newbie here 😄... How do i get the final payment of 6th month with the value of 53144 when the user input is 100000? As I got mine with the value of 53145 for 6th month payment. (sorry for my bad english 😅). Thanks! Here is my code: 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 System.out.println("Here is the monthly payment schedule:"); for(int x=1;x<=6;x++){ System.out.println("Month "+x); System.out.println("Payment: 10% of "+amount+" = "+amount); amount=amount-(amount*10/100); System.out.println("Remaining Amount: "+amount); } } }