diff --git a/factorial in python b/factorial in python new file mode 100644 index 0000000..66b3540 --- /dev/null +++ b/factorial in python @@ -0,0 +1,8 @@ +n = 23 +fact = 1 + +for i in range(1,n+1): + fact = fact * i + +print ("The factorial of 23 is : ",end="") +print (fact)