-module(hello).
-export([main/1, loop/2]).

main(_) ->
    loop(0, 5).

loop(Count, D) ->
    io:format("~p~n", [Count]),
    NewCount = Count + 1,
    NewD = D,
    if
        NewCount =< NewD ->
            loop(NewCount, NewD);
        true ->
            ok
    end.
            

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: