BlueBook
Suppose that a certain amount of money
is deposited in a bank account that pays interest at the rate of
. The interest is paid annually so at the end of each year,
of the amount currently in the account is added to the amount. Assume that the number of years will be from
to
.
Input Specification
The input will be listed on a single line starting with a decimal number followed by
followed by
(the number of years).
Output Specification
The output will be the year followed by the amount of money.
Sample Input 1
1000 8 3
Sample Output 1
0 1000.00
1 1080.00
2 1166.40
3 1259.71
Sample Input 2
20 8 0
Sample Output 2
0 20.00
NOTE: The amount of money must be rounded to 2 decimal places.
Comments