Hello world/Newline omission: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 809: | Line 809: | ||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
<syntaxhighlight lang="lua">io.write("Goodbye, World!")</syntaxhighlight> |
<syntaxhighlight lang="lua">io.write("Goodbye, World!")</syntaxhighlight> |
||
=={{header|M2000 Interpreter}}== |
|||
<syntaxhighlight lang="m2000 interpreter"> |
|||
Form 80, 45 |
|||
// set no special format, 8 character column, at 0,0 position, row (top left) |
|||
Print $("", 8),@(0,0), |
|||
// semi colon |
|||
Module Test1 { |
|||
Print "Goodbye, "; 'The semicolon stops the newline being added |
|||
Print "World!" |
|||
} |
|||
// comma |
|||
Module Test2 { |
|||
Print 1, |
|||
Print 2, |
|||
Print 3, |
|||
Print // now we change line |
|||
For i=4 to 30 : Print i,: Next |
|||
// lines changed according the use of columns |
|||
} |
|||
Test1 |
|||
Test2 |
|||
// we can mix ; and , |
|||
Print "aaa ";1, "bbb ";2, "ccc ";3 |
|||
</syntaxhighlight> |
|||
=={{header|m4}}== |
=={{header|m4}}== |