## p124ex3 - Interest

Suppose that a certain amount of money N (where 1 ≤ N ≤ 1000000) is deposited in a bank account that pays interest at the rate of M% (where 1 ≤ M ≤ 10). The interest is paid annually so at the end of each year, M% of the amount currently in the account is added to the amount. Assume that the number of years will be from 0 to 50.

### Input

The input will be listed on a single line starting with N followed by M followed by Y (the number of years).

### Output

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`

`20 8 0`

### Sample Output 2

`0 20.00`

NOTE: The amount of money must be rounded to 2 decimal places.

Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

• (0/0)
Could Any1 help me wit this question? My code is RE but I don't know why!
:( :( :(

• (0/0)
Could someone check why my code returns WA when submitted? The test case works fine.

• (2/0)
try using double instead of float

• (7/2)
They make an "ass" out of "u" and "mptions"
and drive us bonkers because half the time you don't even realize you made them.

color = sky... thinking blue? cause it's sunrise pink

• (3/0)
Most interesting P3G comment I've ever seen.

• (0/0)
If possible, could someone check my code and tell me what is wrong

• (3/2)
You can't make assumptions with the nature of the input numbers unless stated in the question.