Answers for "how to print out the factorial of number in python"

0

find the factorial of a given integer in python

import math
num = 5
print("The factorial of 5 is : ", end="")
print(math.factorial(num))

# output - The factorial of 5 is : 120

# The factorial of a number is the function that multiplies the number by every natural number below it
# e.g. - 1 * 2 * 3 * 4 * 5 = 120
Posted by: Guest on December-20-2021

Code answers related to "how to print out the factorial of number in python"

Python Answers by Framework

Browse Popular Code Answers by Language