statement/PRINT statement/PRINT NAME PRINT -- Writes data to the screen ABBREVIATION ? SYNOPSIS PRINT <printlist> FUNCTION The PRINT statement is the major output statement in BASIC. While the PRINT statement is the first BASIC statement most people learn to use, there are many subtleties to be mastered here as well. The word PRINT can be followed by any combinations of these items, which is considered the printlist (<printlist>): Characters inside of quotes "text lines" Variable names A B A$ X$ Functions SIN(23) ABS(33) Punctuation marks ; , The characters inside of quotes are often called literals because they are printed exactly as they appear. Variable names have the value they contain (either a number or a string) printed. Functions also have their number values printed. Punctuation marks are used to help format the data neatly on the screen. The comma (,) devides the screen into four columns for data, while the semicolon (;) doesn't add any spaces. Either mark can be used as the last symbol in the statement. This results in the next PRINT statement acting as if it is continuing the last PRINT statement. INPUTS <printlist> - items to be printed RESULT Given printlist is displayed on the screen. EXAMPLES 10 PRINT "HELLO" 20 A$="THERE":PRINT "HELLO,"A$ 30 A=4:B=2:PRINT A+B 50 J=41:PRINT J;:PRINT J-1 60 C=A+B:D=A-B:PRINT A;B;C,D Result: HELLO HELLO, THERE 6 41 40 4 2 6 2 NOTES None BUGS None SEE ALSO CHAR INPUT POS() PRINT# PRINT USING SPC() TAB()