To terminate program execution, close all files, and return to command level.
END statements may be placed anywhere in the program to terminate execution.
Unlike the STOP statement, END does not cause a "Break in line xxxx" message to be printed.
An END statement at the end of a program is optional. GW-BASIC always returns to command level after an END is executed.
END closes all files.
520 IF K>1000 THEN END ELSE GOTO 20
Ends the program and returns to command level whenever the value of K exceeds 1000.