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

8th Jan 2022, 6:17 PM
Wijdene Madiouni
Wijdene Madiouni - avatar
5 Respuestas
+ 1
Classic, this is the formula: Base * Multiplier ^ Repetitions
8th Jan 2022, 6:46 PM
CGM
CGM - avatar
+ 1
Oh sorry, This is the way to write it in python: 0.01 * 2 ** 30
8th Jan 2022, 6:54 PM
CGM
CGM - avatar
0
How it works with this code
8th Jan 2022, 6:48 PM
Wijdene Madiouni
Wijdene Madiouni - avatar
0
Okay thanks
8th Jan 2022, 6:54 PM
Wijdene Madiouni
Wijdene Madiouni - avatar
- 1
How it works? You mean this?: 0.01 * 2 ^ 30
8th Jan 2022, 6:50 PM
CGM
CGM - avatar