Do you think How much money would you make when we start money with 1 Paisa and double the value to the next day.
With a small python program, we will calculate the amount
# Python program to net amount after 30 days |
In this python program, we were used for loop with range function. Concatenate String with Number by '%' operator.
Output:
day 1 = 0.02 |
Oh, know What is the price after 30 days when we start at 1 paisa, It's Exactly 10737418.24 Rs
What is the Big Number we will get If we start 2021 with 1Rs and After the End of 2021
money=1 |
Is very Big number 75153362648762663292463379097258784876021841565066235862633311089030688803667470190838367948312598497021919232
But it's not possible in Real life to add double to the Next day.
Article Contributed By :
|
|
|
|
1113 Views |