The GOTO statement transfers program execution to the line number specified by int-exp. Care should be taken when using GOT0s, to avoid the occurrence of endless loops.
Program Example.
00100 M = 10
00110 PRINT K;
00120 K = M + K
00130 IF K = 1000 THEN GOTO 150 : REM Termination condition
00140 GOTO 110
00150 END
See also ON..GOTO.