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: Bing [Bot], Yahoo [Bot] and 5 guests