diff --git a/calc_main.py b/calc_main.py index 7404aa3..170c26b 100755 --- a/calc_main.py +++ b/calc_main.py @@ -31,7 +31,7 @@ def statement_wrapper(): return while True: - print("MENU") + print("\n CALCULATOR MENU") print("1 for addition :") print("2 for subtraction :") print('3 for multiplication :') @@ -81,13 +81,13 @@ def floor_division(): def factorial(): num = int(input("enter a number: ")) if num < 0: - print("Sorry, factorial does not exist for negative numbers") + print("Sorry, factorial does not exist for negative numbers") elif num == 0: - print("The factorial of 0 is 1") + print("The factorial of 0 is 1") else: - for i in range(1,num + 1): - factorial = factorial*i - print("The factorial of",num,"is:",factorial) + for i in range(1,num + 1): + factorial = factorial*i + print("The factorial of",num,"is:",factorial) return if choice==1: