Hi I need some help, I'm a bit lost with this task
I'm doing this task: The snail goes up 7 feet each day and back 2 feet each night. How many days will it take the snail to climb out of a well with the given depth? Input example: 31 Example output: 6 Explanation: Let's break down the distance, the snail covers each day: Day 1: 7-2=5 Day 2: 5+7-2=10 Day 3 : 10+7-2=15 Day 4: 15+7-2=20 Day 5: 20+7-2=25 Day 6: 25+7=32 So, on day 6 the snail will reach 32 feet and climb out of the well during the day, without slipping again that night. Hint: You can use a loop to calculate the distance the snail covers each day, and break the loop when reach the desired distance. I don't know what to do exactly, I don't know if i have to do a loop, but if i have to i don't know how in aspect that wat is going to be the condition, or if the iterations has to be the same as the feet but it doesn't make sense because the task says that the objective is to show the amount of iterations that takes until reach the feets.