int Factorial(int n) { if (n <= 1) return 1; return n * Factorial(n - 1); }
public int fact(int n) { if (n==0) return 1; else return n*fact(n-1) }
int fact(int n) { if(n==0) return 1; else return n * fact(n-1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)