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

GolamMostafa:
I hope that you have noticed the challenge of maintaining the indentations in a program like this (my version) which contains nested if-else structures.

Ctrl + T and the challenge is no more.