Informations

Auteur(s) Mathieu Xhonneux
Date limite Pas de date limite
Limite de soumission Pas de limite
Étiquettes de catégories level1, s1

Se connecter

[S1] Factorial

The factorial of an integer n! is defined as n! = 1*2*3*...*(n-1)*n, with 0! = 1.


Factorial

Write your own function factorial which takes as parameter an integer and returns an integer value. Your function must be named factorial.

Provide below the prototype and the body of this function.