0
Guys i need your help im new in java programming them asked me to solve the Loan calculator program
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 amount =20000; remain =18000; if(amount % remain == o) System .out.println (amount + remain / 2); } }
2 Answers
+ 2
import java.util.Scanner;
public class Program
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int amount = scanner.nextInt();
int loan;
//your code goes here
for(int i = 1; i <= 3; i++)
{
loan = amount / 10;
amount -= loan;
}
System.out.println(amount);
}
}
0
Fuchsia thank you broo