Skip to content

Commit 54dd2ce

Browse files
nik-revMaoShizhong
andauthored
Update 13_factorial/README.md
Co-authored-by: MaoShizhong <[email protected]>
1 parent f1f29ac commit 54dd2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

13_factorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Exercise 13 - Factorial
22

3-
Write a [recursive factorial function](https://simple.wikipedia.org/wiki/Factorial) that takes a non-negative integer, and returns the product of all positive integers less than or equal to the input integer. An input of `0` should return `1`. The function should only accept numbers, so `'4'` should not be accepted as it is a string. All invalid inputs should return `undefined`.
3+
Write a recursive [factorial](https://simple.wikipedia.org/wiki/Factorial) function that takes a non-negative integer, and returns the product of all positive integers less than or equal to the input integer. An input of `0` should return `1`. The function should only accept numbers, so `'4'` should not be accepted as it is a string. All invalid inputs should return `undefined`.
44

55
For example:
66

0 commit comments

Comments
 (0)