20) Given that a man can jump X meters and after every jump, he comes back 1 meter as it is a slope model and given N poles to cross. Then print how many jumps are needed.
x = int(input('can jmp to:'))
n = int(intpu('distance:'))
i = 0
while i * ( x - 1 ) + x < n:
i = i + 1
print(i + 1)
Comments
Leave a comment