number slide by arai

-module(n).
-export([m/0]).
s(A,B,N,N)->io:format("~p\n",[A]),A==B orelse s(A+1,B,1,N+1);s(A,B,I,N)->io:format("~p ",[A]),s(A+1,B,I+1,N). m()->{_,[N]}=io:fread('',"~d"),s(1,N,1,1).

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page