Math.pow difficulty
<p>I am using Math.pow() but i can't obtai the desired result.
When I enter 1000 for investment amount 4.25 for monthly interest rate and 1 for years I get the result 4.384414858452464E11 instead of 1043.34 If anyone can help much appriciated here is the code</p>

<pre><code>import java.util.Scanner;

public class FinancialApplicationFutureInvestment_13 
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        System.out.println("Enter investment amount: ");
        int investmentAmount = input.nextInt();
        System.out.println("Enter monthly interest rate: ");
        double monthlyInterestRate = input.nextDouble();
        System.out.println("Enter number of years");
        int numOfYears = input.nextInt();

        double futureInvestmentValue = investmentAmount * (Math.pow(1 + monthlyInterestRate, numOfYears * 12));
        System.out.println("Accumulated value is: " + futureInvestmentValue);

        double test = Math.pow(1 + monthlyInterestRate, numOfYears * 12);
        System.out.println(test);

    }

}
</code></pre>
