GoConqr has a new look! Let us know what you think.

Module 11 of 16 · Media

Factorial function

Kostas Diakogiannis

Factorial function

F-6 The factorial function

Write a function that accepts a single number as parameter and returns it's factorial number. Factorial number is the product of all multiplications from number to 1 to the number itself.

For example. Factorial of 5 = 1 * 2 * 3 * 4 * 5 = 120

factorial of 4 = 1 * 2 * 3 * 4 = 24 etc.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?