diff options
Diffstat (limited to 'erlang/count.erl')
-rw-r--r-- | erlang/count.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erlang/count.erl b/erlang/count.erl new file mode 100644 index 0000000..72cb378 --- /dev/null +++ b/erlang/count.erl @@ -0,0 +1,5 @@ +-module(count). +-export([count/1]). + +count(10) -> io:fwrite("10~n"); +count(N) -> io:fwrite("~b~n", [N]), count(N+1). |