3 ms·
He should ask for $1 the first day, $1.10 the second day (10% more), $1.21 (10% more) the third day... and mathematical illiteracy for Christmas.
by patio11 17y ago
He should ask for $1 the first day, $1.10 the second day (10% more), $1.21 (10% more) the third day... and mathematical illiteracy for Christmas.
- ramidarigaz 17y agoBy my calculations that's about $14,000,000,000,000,000. Not bad for a year.
- LucaDuval 17y agoA lot less. $ 1,283,305,580,313,390
- ramidarigaz 17y agoI think that's the payment on day 365, not the year total. Edit: It is. I just ran the code again, and the payment for day 365 is 1.28331e+15
- LucaDuval 17y agoYou are right. I was wrong.