Hello World Program in Erlang
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("Hello World\n").
This program
defines hello_world
function,
which includes an expression that prints out Hello World
to the standard output.
If you compile and run this program, you will get the standard "Hello World!" output:
Hello World!
What's Next
If you are interested in learning Erlang programming, then set up a development environment, for example, as follows:
- Next Step: Erlang development environment setup
C C++ C# Clojure Crystal D Dart F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript