Skip to content

Instantly share code, notes, and snippets.

@bugkiller78
Created October 14, 2020 19:21
Show Gist options
  • Save bugkiller78/49d437ce90b15f1e20168c3ccaed02ac to your computer and use it in GitHub Desktop.
Save bugkiller78/49d437ce90b15f1e20168c3ccaed02ac to your computer and use it in GitHub Desktop.
SmartNinja_DN3_Marko
#Domača naloga 3
#Calculator
number_1 = input("Enter number 1 :")
number_2 = input("Enter number 2 :")
operator = input("Enter desired matehematical operation: ")
if operator == "-":
print(int(number_1) - int(number_2))
elif operator == "+":
print(int(number_1) + int(number_2))
elif operator == "/":
print(int(number_1) / int(number_2))
else:
print(int(number_1) * int(number_2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment