view test/fact0.c @ 80:83d901658ce9 indirect-call

*** empty log message ***
author kono
date Mon, 03 Mar 2003 05:41:10 +0900
parents fdbf2fbc8140
children 096559f07a70
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;
    /* return */ fact(i+1,j*i,n);
}