forked from TheAlgorithms/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 96d122f
authored
fix: Enhance error handling in factorial function (TheAlgorithms#1430)
1 parent 1de5ab7 commit 96d122f
2 files changed
+18
-11
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
12 | + | ||
13 | + | ||
18 | 14 |
| |
19 | 15 |
| |
20 | 16 |
| |
21 | 17 |
| |
22 | 18 |
| |
19 | + | ||
23 | 20 |
| |
24 | 21 |
| |
25 | 22 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
18 | 28 |
| |
19 | 29 |
|
0 commit comments