This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:print [2020/04/11 12:11] admin |
en:print [2020/04/11 12:16] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Print (Statement) ===== | ===== Print (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | **print** [[expressions|expression]] [ ; ] | + | **print** [[expressions|expression]] [ ; ]\\ |
**print** [[expressions|expression]] , | **print** [[expressions|expression]] , | ||
Line 8: | Line 8: | ||
If the optional semicolon is included, no new line is appended. | If the optional semicolon is included, no new line is appended. | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | print "all one" | ||
+ | print " | ||
+ | print " | ||
+ | for t = 1 to 10 | ||
+ | print t, t*2 | ||
+ | next t | ||
+ | </ | ||
+ | Will output: | ||
+ | < | ||
+ | all one | ||
+ | somemore | ||
+ | 1 2 | ||
+ | 2 4 | ||
+ | 3 6 | ||
+ | 4 8 | ||
+ | 5 10 | ||
+ | 6 12 | ||
+ | 7 14 | ||
+ | 8 16 | ||
+ | 9 18 | ||
+ | 10 20 | ||
+ | </ | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> | ||
- | |||
==== History ==== | ==== History ==== | ||
|2.0.0|Added columnar output (comma)| | |2.0.0|Added columnar output (comma)| |