my formula isnt working for monthly interest compounds.
double compound_interest(double months_par, double interest_rate_par, double balance_par)
{
double compound_interest, total_interest;
total_interest=((interest_rate_par*.01)*(balance_par))*months_par;
compound_interest=balance_par+(pow((1+total_interest/12),12));
return compound_interest;
}
thats my one function.
i dunno what the problem is.
double compound_interest(double months_par, double interest_rate_par, double balance_par)
{
double compound_interest, total_interest;
total_interest=((interest_rate_par*.01)*(balance_par))*months_par;
compound_interest=balance_par+(pow((1+total_interest/12),12));
return compound_interest;
}
thats my one function.
i dunno what the problem is.
