Advertisement
jaredt17

Chapter1 Exercise4

Sep 18th, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. Jared Teller
  2. C
  3. 9/18
  4. public class chapter1exercise4
  5. {
  6.  
  7.     public static void main(String[] args)
  8.     {
  9.         double x = 1000;
  10.         for(int i = 1; i<=3; i++)
  11.         {
  12.             x*=1.05;
  13.         }
  14.         System.out.println(x);
  15.        
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement