You are viewing a single comment's thread. Return to all comments →
Erlang Solution:
-module(solution). -export([main/0]). counter(Curr)-> case io:fread("","~d") of eof -> io:format("~p~n",[Curr]); {ok,[N]}-> counter(Curr+1) end. main() -> counter(0).
Seems like cookies are disabled on this browser, please enable them to open this website
List Length
You are viewing a single comment's thread. Return to all comments →
Erlang Solution: