I have read that `GOTO` is bad, but how do I avoid it? I don't know how to program without `GOTO`. In BASIC I used `GOTO` for everything. What should I use instead in C and C++?

I used `GOTO` in BASIC like this:

```vb
MainLoop:
INPUT string$   
IF string$ = "game" THEN   
GOTO game
ENDIF

```