0
Interest is compounded annually at 10% by a certain bank.
Make a program that would input an amount and a number of years(the program should test that both are positive ) and output how much the original amount will be worth after that period.
2 odpowiedzi
+ 4
Attempts?
+ 1
Pseudocode:
Double amount = input
Double years = input
Double finalBalance = 0
For loop (y = 0; y <= years; y++)
FinalBalance += finalBalance * 0.1
Print finalBalance