How would you write a non-recursive algorithm to compute n!?
n!
Rewrite the recursive solution as a loop.