# num = int(input("Enter a number:"))
# factorial = 1
# if num<0:
#     print("please enter posative number")
# elif num == 0:
#     print("Factorial of 0 is 1")
# else:
#     for i in range(1,num+1):
#         factorial = factorial*i
#     print(f"factorial of {num} is {factorial}")

# Using def function:

# def get_fact(num):
    
#     global fact
#     fact = 1
#     if num < 0:
#         print("Please enter posative number")
#     elif num ==  0:
#         print("factorial value of 0 is 1.")
#     else:
#         for i in range(1,num+1):
#             fact = fact*i
#     return fact
# f = get_fact(5)
# print(f)


















    
    