I have been given an assignment in my CS class to come up with a situation when it would be a good idea to use a goto statement and write a program for it. It can be any situation (though I have to write the program in 3 days) and so far I haven't thought of anything that couldn't easily be solved either with recursion or iteration. The only thing that I thought of was Towers of Hanoi, but that can be done in only a few lines with recursion. Do you have any suggestions? Thank you for your help.
EDIT: It has to be the actual goto statement, not other statements that serve the same purpose. For example, the user who answered by suggesting switch, raise, throw, etc, don't work for the assignment.