Mercurial > hg > CbC > old > device
view test/fact0.c @ 6:bf602558130d
continuation
author | kono |
---|---|
date | Thu, 13 Jan 2000 13:41:09 +0900 |
parents | d35df41eac69 |
children | fdbf2fbc8140 |
line wrap: on
line source
#include "stdio.h" main(ac,av) int ac; char *av[]; { printf("%d\n",fact(1,1,atoi(av[1]))); } int fact(i,j,n) /*register*/ int i,j,n; { if (i==n) return j; fact(i+1,j*i,n); }