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.

8th Nov 2022, 2:28 AM
Josephine Autentico Bautista
Josephine Autentico Bautista - avatar
2 ответов
+ 4
Attempts?
8th Nov 2022, 6:04 AM
A͢J
A͢J - avatar
+ 1
Pseudocode: Double amount = input Double years = input Double finalBalance = 0 For loop (y = 0; y <= years; y++) FinalBalance += finalBalance * 0.1 Print finalBalance
8th Nov 2022, 9:42 AM
Ausgrindtube
Ausgrindtube - avatar