Post a New Question


posted by .

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.


where you thinking something like
f(n+1) = (n+1)f(n), n>1, f(1)=1

Answer This Question

First Name
School Subject
Your Answer

Related Questions

More Related Questions

Post a New Question