Skip to content

Latest commit

 

History

History

factorial-challenge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Creating loop-challenge project

Practice writing functions:

Implement a function named factorial that has one parameter: an integer, n. It must return the value of n (i.e., n! factorial).

Constraints:

1 <= n <= 10


Sample input:

4


Sample output:

24