View Single Post
  #10 (permalink)  
Old 05-13-2008, 11:08 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 228
Eku is on a distinguished road
Thanks for the tips Eranga. Here is the New Code. =)
Code:
package test; import java.lang.Math.*; public class Main { public static void main(String[] args) { double CurrMoney=5000,TotalMoney,years = 5; TotalMoney=CurrMoney * (1+(Math.pow((0.05),years))); System.out.println(TotalMoney); } }
Reply With Quote