How would you write a non-recursive algorithm to compute n!?
n!
public int factorialNonRecurse(int n) { int product = 1; for (int i = 2; i <= n; i++) { product *= i; } return product; }