0
Hi I'm looking for solution "Help"
You take a loan from a friend and need to calculate how much you will owe him after 3 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 3 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 } }
2 Antworten
+ 1
Try putting a “loan” variable in a three iteration for loop that multiplies it by 0.90
0
Try it yourself with your own idea.. share your attempt.
What help you need there?