8sa1-gcc/gcc/testsuite/gcc.misc-tests/acker1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

21 lines
230 B
C

int acker(int, int);
void main()
{
acker(3,6);
/* */
exit(0);
/* */
}
int
acker(int x,int y)
{
if (x==0)
return(y+1);
else if (y==0)
return(acker(x-1,1));
else
return(acker(x-1, acker(x, y-1)));
}