Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
while loop... solution in Clear category for Feed Pigeons by maksimus
def checkio(number):
koef = 0
pigeons = 0
while number > 0:
if number > pigeons:
koef += 1
pigeons += koef
else:
return pigeons
number -= pigeons
return pigeons + number
June 9, 2020