int fact(int acc, int n) {
  if (n == 0)
    return(acc);
  else
    return(fact(acc*n,n-1));
}

main() {
  printf("%d\n",fact(1,6));
}