static int factorial(int i) { int n = 1; while (i > 1) n *= i--; ret n; }