Skip to content

calculating the factorial of a number - #17

Open
pranshukatyal14 wants to merge 33 commits into
Abhishekfrom
master
Open

calculating the factorial of a number#17
pranshukatyal14 wants to merge 33 commits into
Abhishekfrom
master

Conversation

@pranshukatyal14

Copy link
Copy Markdown

n = int(input("n"))
def factorial(n):
f=1
for i in range (1,n+1):
f=f*i
return f

print(factorial(n))

@pranshukatyal14

Copy link
Copy Markdown
Author

this is a program to find the factorial of a number

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

10 participants