Ad
  • Custom User Avatar

    Glad you liked it! Don't hesitate to look at other answers, they'll teach you more conventional ways of solving this. There are some things I don't quite understand in your solution, but you taught me something I didn't know ^^ (I was never told you could use an else clause after a for loop to check if there was a break!)