Hello world/Newbie: Difference between revisions

Content deleted Content added
Nbdsp (talk | contribs)
Line 1,073: Line 1,073:


=={{header|Locomotive Basic}}==
=={{header|Locomotive Basic}}==
Either use a browser-based CPC emulator (http://www.cpcbox.com/) or download
Either use CPCBasic, a browser-based Locomotive Basic emulator (https://benchmarko.github.io/CPCBasic/cpcbasic.html) or download
a binary for your platform.
a full CPC emulator binary for your platform.
A list of emulators is available at http://cpcwiki.eu/index.php/Emulators.
A list of emulators is available at http://cpcwiki.eu/index.php/Emulators.
JavaCPC (http://sourceforge.net/projects/javacpc/) or WinAPE (http://www.winape.net/) are particularly recommended.
JavaCPC (http://sourceforge.net/projects/javacpc/) or WinAPE (http://www.winape.net/) are particularly recommended.
An advantage of native emulators is that they tend to have copy-and-paste functionality, so you can edit programs in external [[Editor|texteditor]]s.


In the emulator, type
In CPCBasic, type
<lang locobasic>10 print "Hello World!"</lang>

into the text box and click "Run". Output goes to the blue CPC screen below.
<lang locobasic>10 print "Goodbye, World!"
run</lang>


=={{header|Lua}}==
=={{header|Lua}}==