Subscribe Us

Bulb Code In Python

Bulb Code In Python

n=int(input())
x=int(input())
y=int(input())
c=int(input())
count=0
while(n>=y):
    n=n-y
    count+=1
    n=n+c
while(n>=x):
    n=n-x
    count+=1
print(count)

Post a Comment

0 Comments