Computer Science, asked by singhsreeja0, 3 months ago

write a pyhthon program to input any integers number and find factorial​

Answers

Answered by THELEGENDKINGDOM
1

Answer:

Explanation:

num = int(input("Enter a number: "))

factorial = 1.

if num < 0:

print("Sorry, factorial does not exist for negative numbers")

elif num == 0:

print("The factorial of 0 is 1")

else:

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

Answered by Anonymous
2

Answer:

um = int(input("enter a number: "))

fac = 1.

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

fac = fac * i.

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

PLZ MARK AS BRIANLIEST,FOLLOW ME AND THX FOR THE SUPERB QUESTION

Similar questions