0
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 double
Learning python
8 Réponses
0
okay, give me the doubling penny! Also show your attempt to solve
+ 1
amount = 0.01
days = 30
print(0.01*(2**30))
#it's pretty simple, really
0
{
print ( 1.000000*(1**30) )
print ( 0.01*(1**30) )
}
0
it wants 1 penny (.01) doubled (* 2), 30 times (* 30).
0
Please write it as a code
0
lol nah, thats just doing it for you. hint: you can use parenthesis to have certain operations happen first. write it out on paper as a math problem, then turn it into code
- 1
Use: 0.01 * pow(2, 30)
- 1
Use print (0.01*(2**30)).