295 PRINT Purpose This does not print anything on paper. It does, however, print words and numbers on the screen. Anything enclosed in inverted commas ( " " ) will be printed exactly as it is. Things not enclosed in inverted commas will be assumed to be variable names and the contents of the variable will be printed out. The exact layout of the numbers and figures on the screen will depend on the punctuation used in the PRINT statement. The items following the word PRINT are referred to as the ‘print list’. The screen display is divided into vertical strips (or fields) which are (initially) ten characters wide.
A comma after an item in the print list will cause enough spaces to be printed to ensure that the next item will be printed in the next field. A semi-colon after an item in the print list will cause the next item to be printed on the same line and immediately following the previous item. If the print list does not end with a semi-colon then the next PRINT statement will print its output on a new line. PRINT by itself leaves a blank line. A new line can be forced at any stage in the print list by inserting an apostrophe. The table below gives examples as they would appear, except that commas have been inserted where spaces would be to aid counting.