// factorial, recursive c function // see also fact.s, assembly implemenation // int fact (int n) { if (n<=1) return 1; // 0! == 1! == 1 return n*fact(n-1); }