From 8c99acdcf530515833bba0b44aba7a2726ee57d8 Mon Sep 17 00:00:00 2001 From: Anandteertha Rao <43106871+anandteertha@users.noreply.github.com> Date: Thu, 24 Oct 2019 19:30:05 +0530 Subject: [PATCH] factorial factorial --- factorial in python | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 factorial in python 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)