0

Exponentiation is the raising of one number to the power of another. This operation is performed using two asterisks **. Let

Exponentiation is the raising of one number to the power of another. This operation is performed using two asterisks **. Let's use exponentiation to solve a known problem. 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. Hint:

25th Mar 2021, 3:48 AM
shweta nakadi
shweta nakadi - avatar
9 odpowiedzi
+ 4
print(0.01*(2**30))
8th Nov 2021, 9:24 AM
Rokaya Muhammad
Rokaya Muhammad - avatar
+ 2
print(0.01*(2**30))
29th Mar 2022, 11:02 AM
Gayathri Sada
0
The answer is print(0.01*(2**30)) trust me it is working
29th Aug 2022, 3:18 PM
Opanuga Stephen
Opanuga Stephen - avatar
0
thnaks Opanuga Stephen! done
18th Sep 2022, 9:42 AM
Mohannad Abudagga
Mohannad Abudagga - avatar
- 1
use the hint to do the computation then use print to output result
25th Mar 2021, 4:31 AM
visph
visph - avatar
- 2
# your code goes here print(0.01*(2**30))
8th Nov 2021, 9:24 AM
Rokaya Muhammad
Rokaya Muhammad - avatar
- 2
print(0.01*(2**30))
25th Apr 2022, 7:12 PM
Yegor1
Yegor1 - avatar
- 3
# your code goes here a = 0.01 print(a*(2**30))
16th Aug 2021, 11:36 AM
hatami erbe
hatami erbe - avatar
- 4
print(0.01*(2**30))
22nd Jul 2021, 7:15 PM
Willi
Willi - avatar