diff --git a/factorial.py b/factorial.py new file mode 100644 index 0000000..f7352c1 --- /dev/null +++ b/factorial.py @@ -0,0 +1,8 @@ +n=int(input("enter the limit")) +x=1 +factorial=1 +while x<=n: + factorial=factorial*x + x=x+1 +print(factorial) +