0

Code Project Loan Calculator

Hi Guys, iam nearly new to Java. I'm proud that i solved the loan calculator. Here is my Code 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 for (int i = 0; i<3; i++){ int sum = amount*10/100; amount -=sum; } System.out.println(amount); } }

30th Jun 2021, 9:35 AM
Daniel
3 odpowiedzi
+ 2
Good one , but what is your question ? Welcome to sololearn . You can check some platform rules , https://www.sololearn.com/Discuss/1316935/?ref=app
30th Jun 2021, 9:42 AM
Abhay
Abhay - avatar
+ 2
Congrats! Be excited and able to solve tasks is giving motivation to move forward. Unfortunately giving ready code to others is not good. As it leads to cheating. Happy coding
30th Jun 2021, 9:45 AM
Shadoff
Shadoff - avatar
+ 2
Ah ok . I thought it's normal to post the code. I seen a lot of other people doing this. Sorry Guys
30th Jun 2021, 9:47 AM
Daniel