summaryrefslogtreecommitdiff
path: root/erlang/count.erl
diff options
context:
space:
mode:
Diffstat (limited to 'erlang/count.erl')
-rw-r--r--erlang/count.erl5
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).