<filename>Python/26. How to get factorial using for loop.py
x = abs(int(input("Insert any number: ")))

factorial = 1
for i in range(2, x+1):
    factorial *= i

print("The result of factorial = ",factorial)
<filename>Python/26. How to get factorial using for loop.py
x = abs(int(input("Insert any number: ")))

factorial = 1
for i in range(2, x+1):
    factorial *= i

print("The result of factorial = ",factorial)