include std/io.e puts(STDOUT, "Hello, World!\n")
Hello World in Euphoria was written by:
This article was written by:
If you see anything you'd like to change or update, please consider contributing.
The syntax of Euphoria is similar to C in some respects but without
braces and semicolons, and the
include statement does not have
quotes or angle brackets around the file that is being included.
std/io.e include file contains the definitions for standard
I/O file numbers.
STDOUT, as expected, has the value of
it is not necessary to include this, it makes the code more readable
since the intent of
STDOUT is more obvious than just a hard-coded
puts(STDOUT, "Hello, World!\n")
puts function is similar to the
in C, but the parameters are reversed. The first argument is the file
number. The second argument is the string to output. In C, the first
argument is the string to output, and the second argument is a
If you want to run this program, you'll first need to download a copy of the Euphoria interpreter, and follow the installation instructions. From there, open a terminal, and run this command: