| import java.io.*;
import java.util.*;
public class Interest{
public static void main (String[]args)throws Exception {
BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
double intRate=1.1;
System.out.print("Type in money to deposit: ");
String InputValue = BR.readLine();
Double money=Double. parseDouble(InputValue);
for(int i=1; i<=10;i++ ){
money=money*intRate;
System.out.println(money);
}
System.out.println("Final Destination: "+money);
}
} |