Problem

Solution

Discussion

Erlang provides an interactive prompt, called the Read-Eval-Print-Loop (REPL), that allows you to type some simple function definitions into Erlang and have them evaluated immediately. This allows for much more immediate feedback than compiled languages.

This is the first program many C programmers write, but it isn't the best way to start programming Erlang. Erlang makes extensive use of the functional style and it is better to become acquainted with this style before delving into input and output.