0
Not understood this programme
2 ответов
+ 1
Which part is troubling you ...
# read input of <items>
items = int(input())
# read input of <days>
days = int(input())
# while <days> greater than or equal to zero
while days > 0:
# multiply <items> by 2
items *= 2
# subtract <days> by 5
days -= 5
# when loop is completed, print <items>
print(items)
+ 1
😅 ya I got the answer after posting it , anyway thanks