Normal precedence rules are used: Exponentiation, multiply and divide, add and subtract. Arithmetic Expressionsīesides the four standard arithmetic operations, BASIC includes raising-to-the-power, the symbol of which is “^”. In addition, the slightly more recent version of BASIC that we are using includes the INPUT statement. RETURN Returns from the end of the subroutineĭEF Introduces programmer-defined functions GOTO Does just that, transfers to another line-numbered statement READ Assigns values to variables from internal data LET Introduces the assignment statement, and is required There were fifteen statement types in the original BASIC. This note gives an outline of the language for those of you familiar with programming.
This document is reproduced courtesy of Thomas Kurtz The Original-Original Versionĭartmouth BASIC revolutionized computer programming for the non-experts, who greatly outnumber the experts! It was a simple language, used English words, and gave almost instantaneous response in the days when turnarounds of hours or even days was the norm.