You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
411 B
17 lines
411 B
operator = input("What calculation would you like to do? (add, sub, mult, div)")
|
|
num1 = int(input("What is number 1?"))
|
|
num2 = int(input("What is number 2?"))
|
|
|
|
result = ""
|
|
|
|
if operator == "add":
|
|
result = num1 + num2
|
|
elif operator == "sub":
|
|
result = num1 - num2
|
|
elif operator == "mult":
|
|
result = num1 * num2
|
|
elif operator == "div":
|
|
result = num1 // num2
|
|
|
|
print("Your result is", result, "Calc U Later!")
|