Mercurial > hg > CbC > old > device
view test/fact0.c @ 927:b491db049d74
Added tag current-release for changeset 4e73a22327a8
author | kono |
---|---|
date | Sun, 13 Apr 2014 10:20:02 +0900 |
parents | 5313ed059cee |
children |
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); }