Computer Science, asked by deranceadarsh, 20 days ago

Write a for loop in Python to print the factorial of a number.Example (5 factorial is 5!=1*2*3*4*5 =120.)

Answers

Answered by XxDashingGirlxX
0

The factorial of a number is the product of all the integers from 1 to that number.

For example, the factorial of 6 is 1*2*3*4*5*6 = 720. Factorial is not defined for negative numbers, and the factorial of zero is one, 0! = 1.

Attachments:
Answered by vighnajitsaxena
0

Answer:

Python 3 program to find

Factorial of given no.

def fact(n)

number = 5

print

Explanation:

Similar questions
Math, 9 months ago