- 1
Who can help me ?
You are offered a choice of either $1.000.000 or $0.01 (one penny) doubled every day for 30 days (the resulting amount is doubled every day). Task: Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount.
5 Respuestas
+ 1
Classic, this is the formula:
Base * Multiplier ^ Repetitions
+ 1
Oh sorry, This is the way to write it in python:
0.01 * 2 ** 30
0
How it works with this code
0
Okay thanks
- 1
How it works? You mean this?:
0.01 * 2 ^ 30