Skip to content

Commit

Permalink
Merge pull request #14 from PaprikaX33/chil
Browse files Browse the repository at this point in the history
small indentation fixes
  • Loading branch information
PaprikaX33 authored Oct 15, 2019
2 parents 9287b55 + 35483bb commit b2a8365
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions calc_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :')
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b2a8365

Please sign in to comment.