+ 1

Возведение в степень (Exponentiation)

Exponentiation is a repeated multiplication of a number by itself. This operation is performed by adding two asterisks **. Let's use exponentiation to solve the following problem. You are offered a one-time payment of $ 1,000,000 or 1 cent, which is doubled every day for 30 days (the amount received is doubled every day). Task: Write a program to calculate the amount obtained from the result of doubling to determine in which case the amount is greater. Question #true version print (0,01*(2**30)) # why is not True print (0,01*(2**29)) After all, it turns out in the first version, on the first day we already received 0.02

31st Oct 2020, 5:38 AM
Alexandr
2 Antworten
+ 1
hay there i am unable to understand what you want so please post it in english
2nd Nov 2020, 10:37 AM
Anmol.
0
Made a translation of the text
2nd Nov 2020, 10:45 AM
Alexandr