Writing Algorithms: For Loop (5 marks)
An algorithm calculates the factorial of a number provided by the user. The factorial of a number n, represented as n!, is the product of all positive integers up to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
Writing Algorithms: For Loop (5 marks) Read More »