Find factorial of a number using python #pythonprogramming

preview_player
Показать описание
Towards Techno
LIKE💡SHARE💡SUBSCRIBE 💡

To download python visit the python official site,

Code:

#Factorial of a number
# 5!=5*4*3*2*1=120

# to find fact of
n=int(input("Enter the number to find factorial of : \n"))

fact=1

for i in range(1,n+1):
fact=fact*i

# print the output
print("The factorial of the number is: ",fact)

Search Term:
how to find factorial of a number
write a program to find factorial of a number
rite a program to find factorial of a number using recursion,write a c program to find the factorial of a given integer number using both recursive and non-recursive functions.,write a program to find factorial of a number using recursion
how to find the factorial of a number in python using recursion,how to find the factorial of a number in c using for loop,how to find factorial of a given number – program with using recursion?

#python #pythonprogramming #pythontutorial #coding #python #programmer #programming
Рекомендации по теме
Комментарии
Автор

Bro Which is better pycharm or vscode?

FaizanJacobs
welcome to shbcf.ru