Table of Contents

PRINT

PET VIC-20 C64 C16 Plus/4 C128 X16 M65

Output strings and numbers on the currently selected screen, at the current cursor position.

Syntax

PRINT <expression> [ ,|; <expression>] ... [;]

Expressions can be of any type, excluding user-defined types. Expressions are separated with commas (,) or semicolons (;).

A semicolon at the end of the statement will prevent printing a newline after the last printed expression.

Examples

PRINT "hello world"
PRINT "the value of myvar is "; myvar; " and that of anothervar is "; anothervar
REM -- tabular output
a = 10 : b = 20 : c = 30
PRINT a, b, c