Martes, Pebrero 7, 2012

basic 21: interest in bank

package basic;




public class Basic {
    public static void main(String[] args) {
    double amount;
    double capitalB = 10000;
    double tax = .12;
    
        for (int month = 1; month <=20; month++) {
            amount = capitalB*Math.pow(1 + tax ,month);
            System.out.println(amount);
            
        }
        
        
        
}
}

Walang komento:

Mag-post ng isang Komento