Just enter names and when you feel bored of it enter exit.
Notes & Credits
The problem with the original was that it needed to have a separate block for the exit. I made it to where the program ends when you enter the word exit instead of continuing.