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 } }

4th Dec 2022, 1:31 PM
Hus Sam
Hus Sam - avatar
2 Antworten
+ 1
Try putting a “loan” variable in a three iteration for loop that multiplies it by 0.90
4th Dec 2022, 8:04 PM
Maxfecteau
Maxfecteau - avatar
0
Try it yourself with your own idea.. share your attempt. What help you need there?
4th Dec 2022, 2:05 PM
Jayakrishna 🇮🇳