- 5

Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount

Please tell me how to make

19th Nov 2020, 4:52 AM
𝑁𝑈𝑆𝐻𝑅𝐴𝑇
𝑁𝑈𝑆𝐻𝑅𝐴𝑇 - avatar
22 Respuestas
+ 32
for i in range(30,31): if i==30: print(0.01*(2**i)) else: print(0.01*(2**i),end=' ') try this
27th Jan 2021, 4:52 PM
yashoda rannulu
yashoda rannulu - avatar
+ 7
x=1000000 y=0.01*(2**30) print(max(x,y))
28th Jan 2021, 4:15 PM
Saurabh Kumar Thakur
Saurabh Kumar Thakur - avatar
+ 5
print(0.01*(2**30))
9th Jun 2022, 6:32 AM
Abdullah Sunasara
Abdullah Sunasara - avatar
+ 3
print(0.01*(2**30))
31st Jan 2021, 7:15 AM
Aman Shrivas
Aman Shrivas - avatar
+ 1
Is it working fine? I think, question is about "find 1.000.000 is greater or per day 0.01 (double every day) is greater.. So If 0.01/day then 3 days : 0.01*2*2*2 =>0.01*(2**3) So for 30days : 0.01*(2**30) Then compare if 1000000>0.01*(2**30) : print(" greater") I think this what is asking about but am not sure.. Not tested..
21st Nov 2020, 3:04 PM
Jayakrishna 🇮🇳
0
Thanks for explaining
21st Nov 2020, 3:05 PM
𝑁𝑈𝑆𝐻𝑅𝐴𝑇
𝑁𝑈𝑆𝐻𝑅𝐴𝑇 - avatar
0
Is that correct answer? x = 1000000 y = 0.01*(2**30) if y < x: print (x) else: print (y)
14th Mar 2021, 10:03 AM
Bogusław Gałuszka
Bogusław Gałuszka - avatar
0
for i in range(30,31): if i==30: print(0.01*(2**)) else: print(0.01*(2**i),end='')
10th Jun 2021, 8:00 AM
Kala Anas
0
thx
5th Jul 2021, 2:19 PM
Kiruthiga
Kiruthiga - avatar
0
print(" 10737418.24")
15th Sep 2022, 5:06 AM
ME CSE
0
for a in range(30,31): if a==30: print(0.01*(2**a)) else: print(0.01*(2**a),end=' ')
18th Sep 2022, 5:23 AM
Be Rain
Be Rain - avatar
0
for i in range(30,31): if i==30: print(0.01*(2**i)) else: print(0.01*(2**i),end=' ')
30th Jan 2023, 8:27 AM
SANTOS MANZI
SANTOS MANZI - avatar
- 1
a=30 b=31 c=0.01 for i in range(a,b): if i==a: print(c*(2**i)) else: print(c*(2**i),end=' ')
11th Mar 2021, 7:52 AM
Ravindra Devaliya
Ravindra Devaliya - avatar
- 1
total=0.01 for i in range(30): total+=0.01*(2**i) print(total)
28th Mar 2021, 3:08 PM
Lokesh Potluri
- 1
Its very simple; print(0.01*(2**30))
9th May 2021, 5:02 AM
peetabas patro
- 2
Can you clarify your question?
19th Nov 2020, 5:00 AM
Clare Apumami
Clare Apumami - avatar
- 2
I think there you need find dollars for 30 for days $0.01 as 0.01*(2**30) and then compare it with other choice..
19th Nov 2020, 2:53 PM
Jayakrishna 🇮🇳
- 2
Thanks but can you explain it to clearly
21st Nov 2020, 7:25 AM
𝑁𝑈𝑆𝐻𝑅𝐴𝑇
𝑁𝑈𝑆𝐻𝑅𝐴𝑇 - avatar
- 2
NUSHRAT you're welcome.. May I know is that working fine?
21st Nov 2020, 3:10 PM
Jayakrishna 🇮🇳
- 2
for i in range(30,31): if i==30: print(0.01*(2**i)) else: print(0.01*(2**i),end=' ')
7th May 2021, 5:56 PM
LAKSHMI NARAYANAN M
LAKSHMI NARAYANAN M - avatar