- 1
Loan calculator
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 int month = 1; int rem_amt = amount ; while (month <= 6){ int payment = (int)Math.ceil(10/100.0*rem_amt); rem_amt -= payment; month++; } System.out.println (rem_amt ); } }
2 Respostas
+ 6
Hey there!
Please don't post the solution in q/a.
Only use this section if you have any programming related queries or facing any issues regarding Sololearn.
SL guidelines..
https://www.sololearn.com/discuss/1316935/?ref=app
0
https://code.sololearn.com/c1O1gp0kXbYd/?ref=app