Mercurial > hg > CbC > old > device
view test/fact0.c @ 585:a5b902b20300 ia32-no-rname
ia32 reconfigure end (correct?)
author | kono |
---|---|
date | Wed, 18 Jan 2006 12:26:48 +0900 |
parents | 0c256ea2a97e |
children | 5313ed059cee |
line wrap: on
line source
#include "stdio.h" main(ac,av) int ac; char *av[]; { printf("#0006:%d\n",fact(1,1,10 /*atoi(av[1])*/)); return 0; } int fact(i,j,n) /*register*/ int i,j,n; { if (i==n) return j; return fact(i+1,j*i,n); }