while true:
print("options:")
print("enter 'add'to add two numbers")
print("enter 'subtract'to subtract two numbers")
print("enter'multiply'to multiply two numbers")
print("enter'divide'to divide two numbers")
print("enter 'quit'to end")
userinput=="quit":
break;
elif userinput=="add":
num1=float(input("enter a number:"))
num2=float(input("enter another number:"))
result=str(num1+num2)
print("the answer is "+result)
elif userinput=="subtract":
num1=float(input("enter a number:"))
num2=float(input("enter another number:"))
result=str(num1-num2)
print("the answer is "-result)
elif userinput=="multiply":
num1=float(input("enter a number:"))
num2=float(input("enter another number:"))
result=str(num1*num2)
print("the answer is "*result)
elif userinput=="divide":
num1=float(input("enter a number:"))
num2=float(input("enter another number:"))
result=str(num1/num2)
print("the answer is "/result)
else:
print("unknown input")