### BlueBook

## 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

### Sample Input 2

20 8 0

### Sample Output 2

0 20.00

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

All Submissions

Best Solutions

**Point Value:** 3

**Time Limit:** 2.00s

**Memory Limit:** 16M

**Added:** Oct 19, 2008

**Languages Allowed:**

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

## Comments (Search)

Kevin123on Dec 11, 2017 - 10:49:20 pm UTC Help!:( :( :(

legend11011on Jul 01, 2017 - 5:39:09 pm UTC Test case works but submission says WAkxoraxeon Jul 01, 2017 - 8:02:56 pm UTC Re: Test case works but submission says WAcanyonblue77on Mar 18, 2015 - 1:56:21 am UTC Assumptionsand drive us bonkers because half the time you don't even realize you made them.

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

jialeyuon Jun 19, 2016 - 7:11:10 pm UTC Re: Assumptionssas5580on Dec 27, 2013 - 2:24:38 am UTC Invalid Return for last test case :(Butaneon Dec 27, 2013 - 3:49:16 am UTC Re: Invalid Return for last test case :(