[erlang-questions] A silly one?
Thu Jan 28 15:38:06 CET 2010
You put the terms to print in a list:
Fac = factorial(N),
io:format("fac of ~p is ~p~n", [N, Fac]).
----- Original Message -----
From: "Ish Rattan" <>
Sent: Thursday, January 28, 2010 3:25 PM
Subject: [erlang-questions] A silly one?
> I can't figure out how to print a term,
> assume tht factorial(N) is given and
> print_it(N) ->
> Fac = factorial(N),
> io:format("fac of ~p is ~p~n", N, Fac).
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
More information about the erlang-questions