Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e6a4e43

Browse files
Create Day 9.md
1 parent c59f10b commit e6a4e43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎30 Days of Code HackerRank/Day 9.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Day 9: Recursion 3
2+
3+
```
4+
5+
def factorial(num):
6+
return 1 if num == 1 else factorial(num - 1) * num
7+
8+
9+
print(factorial(int(input())))
10+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /