Skip to content

Commit c452168

Browse files
committed
adds solution
1 parent 385a03c commit c452168

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

anwers/lvl_1/question_2.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@
1717
fatorial *= n
1818

1919
print("O resultado de {0}! é: {1}".format(numero, fatorial))
20+
21+
# # Solution:
22+
# def fact(x):
23+
# if x == 0:
24+
# return 1
25+
# return x * fact(x - 1)
26+
27+
28+
# x = int(input())
29+
# print(fact(x))

0 commit comments

Comments
 (0)