Hello, World! in Forth
Example for versions
gforth 0.7.0
Word ." reads a double-quotes-delimited string and outputs it. The space character that separates ." and Hello doesn’t count as part of the string, it’s necessary to recognize ." as a word.
cr outputs a new line character and is an equivalent of nl in Prolog and endl in C++.
." Hello, World!" cr
Comments
]]>blog comments powered by Disqus
]]>