Posted by
**Iah** on
.

Hi. The question I'm having problems with:

Write the body of an iterative function to compute n!, where n! = n(n-1)(n-2)...1.

Then, analyze this function where the work unit is the multiplication operation.

I think I have the first part, but I'm confused on the second part.

Please help!!

When multiplying, use shorthand notation.

Example

56*n!

where you thinking something like

f(n+1) = (n+1)f(n), n>1, f(1)=1