| 
View
 

math.erl.txt

File history uploaded by Shirley Moore 8 years, 2 months ago
-module(math).
-export([fac/1]).

fac(N) when N > 0 -> N * fac(N-1);
fac(0)            -> 1.

Comments (0)

You don't have permission to comment on this page.