Ends a QBasic program.
END
END
by itself terminates your program and closes all files.
The END
statement is also used with DEF FN, FUNCTION, IF, SELECT, SUB and TYPE. Those forms of END
are discussed in relation to the appropriate statements.
END
statements may be placed anywhere in the program to terminate execution.
An END
statement at the end of a program is optional.
FOR i = 1 TO 10
PRINT i
NEXT
END