Skip to content

calculating the factorial of a number #17

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 33 commits into
base: Abhishek
Choose a base branch
from
Open

Conversation

pranshukatyal14
Copy link

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
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants