Writing a sample program in Erlang
- You can write the program in notepad and save it with .erl execution.
- Example: Program to find the factorial of a given number.
3. Once the program is saved with .erl extension, open Erlang shell and navigate to the…