Computer Science, asked by TiTaInCyBoRg, 1 month ago

Write a python program to find factorial of 5 with output

Answers

Answered by riyasinghms
3

Answer:

1.num = int(input("enter a number: "))

2.fac = 1.

3.for i in range(1, num + 1):

4.fac = fac * i.

5.print("factorial of ", num, " is ", fac)

Explanation:

plzzzzzz me as brainlist

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

def factorial_5():

factorial = 1

for i in range(1, 6):

factorial *= i

return factorial

print("factorial of 5:", factorial_5())

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions