# Find Factorial

num = int(input('Enter a number: '))
factorial = 1

if num < 0:
    print("Sorry, Invalid number.")
elif num == 0:
    print("The factorial of 0 is 1.")
else:
    for i in range(1, num+1):
        factorial *= i

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


1decc7a241727419d2108b15e356e70afd0610c4
<mask token>

<mask token>
if num < 0:
    print('Sorry, Invalid number.')
elif num == 0:
    print('The factorial of 0 is 1.')
else:
    for i in range(1, num + 1):
        factorial *= i
print('The factorial of', num, 'is', factorial)

num = int(input('Enter a number: '))
factorial = 1
if num < 0:
    print('Sorry, Invalid number.')
elif num == 0:
    print('The factorial of 0 is 1.')
else:
    for i in range(1, num + 1):
        factorial *= i
print('The factorial of', num, 'is', factorial)

# Find Factorial

num = int(input('Enter a number: '))
factorial = 1

if num < 0:
    print("Sorry, Invalid number.")
elif num == 0:
    print("The factorial of 0 is 1.")
else:
    for i in range(1, num+1):
        factorial *= i

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

