[erlang-questions] A silly one?
Thu Jan 28 15:36:35 CET 2010
sorry, a typo
io:format("fac of ~p is ~p~n", [N, Fac]).
On Thu, Jan 28, 2010 at 9:34 AM, Kaiduan Xie <kaiduanx@REDACTED> wrote:
> io:format("fac of ~p is ~p`n", [N, Fac]).
> On Thu, Jan 28, 2010 at 9:25 AM, Ish Rattan <ishwar@REDACTED> wrote:
>> 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