[erlang-questions] A silly one?

Kaiduan Xie kaiduanx@REDACTED
Thu Jan 28 15:34:55 CET 2010


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).
>
> -ishwar
>
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list