I'm trying to write a code that will determine the 3 rides that the user can ride in 60 minutes without exceeding 60 minutes. The program will ask the user for the wait times of 5 rides. Given that rides can only be ridden once and the time to walk between rides is 2 minutes and the ride times are 3 minutes.
I know that using if-else statements will make it longer but I'm not entirely sure how to use loops.
Thanks!