From 6b3209890883384e5118838d1fd1a3ed5c5cd220 Mon Sep 17 00:00:00 2001 From: Shahbaz90 Date: Thu, 17 Oct 2019 15:33:26 +0530 Subject: [PATCH] factorialshahbaz.py The program is to find factorial of a number using python --- factorialshahbaz.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 factorialshahbaz.py diff --git a/factorialshahbaz.py b/factorialshahbaz.py new file mode 100644 index 0000000..ef784c4 --- /dev/null +++ b/factorialshahbaz.py @@ -0,0 +1,6 @@ +__author__ = 'Shahbaz_Akhtar' +number= int(input("Enter a number : ")) +factorial=1 +for counter in range(number,1,-1): + factorial=factorial * counter +print(factorial)