12th computer science python practical - 1 tamil tutorial
SELVAM TOUCH & TOUCH COMPUTERS SELVAM TOUCH & TOUCH COMPUTERS
9.67K subscribers
3,374 views
63

 Published On Apr 22, 2022

#python #12thpython #practicalexam
Write a program to calculate the factorial of the given number using for loop
brief explanation :
num = int(input("Enter a Number: "))
if (num==0):
fact = 1
fact = 1
for i in range(1,num+1):
fact = fact * i
print("Factorial of ", num, " is ", fact)

show more

Share/Embed