You have a magic box that doubles the count of items you put, in every day. The given program takes the initial count of the it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

You have a magic box that doubles the count of items you put, in every day. The given program takes the initial count of the it

Answer plss

23rd Jul 2022, 3:58 PM
Aman Rai
Aman Rai - avatar
1 Answer
0
Input: 5 Days: 4 Output: 80(5*2**4) You have 5 as the start Count 5 it's Double itself on the First day 5*2 = 10, second day 10*2=20, third day 20*2=40, Last day 40*2=80. For more help write what you already got. 😉
23rd Jul 2022, 4:07 PM
Felix Alcor
Felix Alcor - avatar