public int factorial_iter(int n){ result = 1; for(i <- [1..n]) result *= i; return result; }