END

The END statement is used to terminate program execution. Once having reached this statement, the program will complete execution and will not attempt to execute any instructions that follow (unless called by a GOTO or GOSUB). If the END command is at the very end of a file (i.e., it is the last statement), insertion of the statement is purely optional.

00100 INPUT A
00110 IF A <> 100 THEN GOSUB 1000 : GOTO 100
00120 PRINT "Execution Terminated"
00130 END : REM Prevents execution of program passing here
01000 REM Subroutine to print out A
01010 PRINT "And A = ";A
01030 RETURN

Try it