View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:37 PM
Geinius's Avatar
Geinius Geinius is offline
Novice
Join Date: Jun 2007
Posts: 6
iTrader: (0)
Geinius is on a distinguished road
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);
}
}

__________________
Powered by Yahoo! Answers
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!