Skip to content

Commit 963085b

Browse files
authored
Merge pull request #41 from JAI-ARORA/master
Update factorial.py
2 parents bcff9a3 + 85c2146 commit 963085b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

factorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def get_iterative_factorial(n):
1414
for i in range(1, n+1):
1515
fact *= i
1616
return fact
17-
17+
print("input should be an integer")
1818
print(get_recursive_factorial(6))
19-
print(get_iterative_factorial(6))
19+
print(get_iterative_factorial(6))

0 commit comments

Comments
 (0)