Can goto() statements be avoided in this program -- pls place code?

Ctrl + T and the challenge is no more.

There are so many little things that make life meaningful!