0
When Bongi's new baby, Sipho, was born,she opened a savings account woth R1000.00. On each daybitthday,starting with the first,the bank added 4.5% of the balnce and Bongi added another R500.00 to the account.Write a loop that will calculate how much money was in the account on Sipho's 18th birthday?
2 Antworten
0
double amt=1000;
for(int i=1;i<=18;i++){
amt=amt+(0.045*amt)+500;
}
Hence amt has the final ans.