fork download
  1. -module(prog).
  2. -export([main/0]).
  3.  
  4. main() ->
  5. { ok, [N1, N2, N3] } = io:fread("", "~d~d~d"),
  6. print(N1),
  7. print(N2),
  8. print(N3).
  9.  
  10. print(1) -> io:format("one~n");
  11. print(2) -> io:format("two~n");
  12. print(3) -> io:format("three~n").
  13.  
Success #stdin #stdout 0.23s 8400KB
stdin
1
	2
	3
stdout
one
two
three