From 5bd2d02c0807103503fcbfc3f4469e6b5412588d Mon Sep 17 00:00:00 2001 From: prashant-2906 <91776562+prashant-2906@users.noreply.github.com> Date: Sun, 10 Oct 2021 09:06:57 +0530 Subject: [PATCH] Factorial.py factorial of a number --- Factorial.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Factorial.py diff --git a/Factorial.py b/Factorial.py new file mode 100644 index 0000000..65f5a82 --- /dev/null +++ b/Factorial.py @@ -0,0 +1,6 @@ +#copyright prshant-2906 +n=int(input()) +fact=1 +for a in range(1,n+1): + fact*=a; +print(fact,end="")