Write a python program to print the factorial of a number


Topic: Write a python program to print the factorial of a number

Solution

num = 5
fact = 1
while num > 0:
   fact *= num
   num -= 1
print(fact)



List all Python Programs