0

Loan Calculator! how can i start?

You take a loan from a friend and need to calculate how much you will owe him after 6 months. You are going to pay him back 10% of the remaining loan amount each month. Create a program that takes the loan amount as input, calculates and outputs the remaining amount after 6 months. 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 } }

15th Feb 2021, 12:45 PM
Sonu Bhagat
Sonu Bhagat - avatar
2 Answers
+ 2
Just read the description and form the logic of it Hint :- Use a loop to calculate the loan for every year. And evaluate your amount according to 10% discount
15th Feb 2021, 12:48 PM
Atul [Inactive]