[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

END

TYPE: Statement
FORMAT: END

Action: This finishes a program's execution and displays the READY message, returning control to the person operating the computer. There may be any number of END statements within a program. While it is not necessary to include any END statements at all, it is recommended that a program does conclude with one, rather than just running out of lines.

The END statement is similar to the STOP statement. The only difference is that STOP causes the computer to display the message BREAK IN LINE XX and END just displays READY. Both statements allow the computer to resume execution by typing the CONT command.

EXAMPLES of END Statement:
   10 PRINT"DO YOU REALLY WANT TO RUN THIS PROGRAM"
   20 INPUT A$
   30 IF A$ = "NO" THEN END
   40 REM REST OF PROGRAM . . .
   999 END

EXP

TYPE: Function-Numeric
FORMAT: EXP ( <number> )

Action: This mathematical function calculates the constant e (2.71828183) raised to the power of the number given. A value greater than 88.0296919 causes an ?OVERFLOW error to occur.

EXAMPLES of EXP Function:
   10 PRINT EXP (1)
   20 X = Y * EXP (Z * Q)

[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated December 22, 2002.