Code:
for (i=1; i<=36; i++)
{
interest = deposit * .03;
balance = deposit * 1.03;
TotalInterest = balance - deposit;
deposit = balance;
}
I'm trying to make an interest calculator. I'm trying to get the balance,interest, and total interest for 3 years(my equations are above). the user will input the deposit amount, so if the user enters "100" the following would be outputted.
Month Balance Interest Total Interest
1 ----103------ 3.00---- 3.00----
2 ----106.09---- 3.09---- 6.09----
3 ----109.27 ----3.18---- 9.27----
currently i'm getting...
Month Balance Interest Total Interest
1 ----103 ------3.00 ----3.00----
2 ----106.09 ----3.09 ----3.09----
3 ----109.27 ----3.18 ----9.27----
(my interest and total interest are the same for some weird reason!) Please help me I've never been great with equations!!!!
Thanks