NASutils Knowledge BaseUnofficialPolski

BASIC · lesson 2 of 30 · First stepsSeveral parts on a line

A comma puts parts side by side and a semicolon at the end keeps the line open. A rem line is a note for the reader.

Programming on the NAS › BASIC in 30 lessons

02-print.yab Download 02-print.yab

rem A rem line is a note for the reader. yabasic skips it.
print "One line"
print "Two parts ", "on one line"
print "The semicolon keeps ";
print "the line open"
print
print "An empty line is above this one"

Terminal

$ yabasic 02-print.yab
One line
Two parts on one line
The semicolon keeps the line open

An empty line is above this one

Exercise

Print a frame of stars around one word.