We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716a707 commit 9c2e0b9Copy full SHA for 9c2e0b9
Python_Begginer_Projects/Easy/factorial.py
@@ -0,0 +1,10 @@
1
+number = int(input('Enter a number: '))
2
+
3
+def Cal(number):
4
+ if(number == 1):
5
+ return 1
6
+ else:
7
+ return number * Cal(number - 1)
8
9
+a = Cal(number)
10
+print(number, '! =', a)
0 commit comments