Computer Science, asked by purumyaswant, 11 months ago

wtrite a factorial program in python language​

Answers

Answered by amarjeetdhillon39
0

Explanation:

Here is your answer mate

Hope this helps you

plz mark as brainlist answer

Attachments:
Answered by nandini200823
0
  1. num = int(input("Enter a number: "))
  2. factorial = 1.
  3. if num < 0:
  4. print("Sorry, factorial does not exist for negative numbers")
  5. elif num == 0:
  6. print("The factorial of 0 is 1")
  7. else: for i in range(1,num + 1):

Similar questions