Solved

Compute for the factorial value. Factorial is the product of all positive integers less than or equal to n. How do i do this?
Last edited on
Line 11. At start i==num. You iterate one step, because num>=num. After the first step i==num-1, which is less than num. Iteration stops.
Topic archived. No new replies allowed.