it wont work
- Code: Select all
def calc_main():
print"Muzza's Calculator v1"
print"1 - Addition"
print"2 - Subtraction"
choice = raw_input("Option: ")
if choice == 1:
x = raw_input("First Number: ")
y = raw_input("Second Number: ")
if x > 0 and y > 0:
answer = x + y
print answer
calc_main()
elif choice == 2:
x = raw_input("First Number: ")
y = raw_input("Second Number: ")
if x > 0 and y > 0:
answer = x - y
print answer
calc_main()
Users browsing this forum: snippsat and 3 guests