Computer Science, asked by mrdelightlive, 5 months ago

n = int(input('Enter an integer >= 0:'))
fact = 0
for i in range(1,n):
fact = fact * n
print('factorial is' fact)​

Answers

Answered by jai696
3

Answer:

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

def factorial(n):

factorial = 1

if n == 0:

return factorial

for i in range(1, n + 1):

factorial *= i

return factorial

print("factorial is", factorial((n := int(input("Enter an integer >= 0: ")))))

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

Similar questions