How would you write a non-recursive algorithm to compute n!?
n!
int total = 1 loop while n > 1 total = total * n n-- end while