Created
October 14, 2020 19:21
-
-
Save bugkiller78/49d437ce90b15f1e20168c3ccaed02ac to your computer and use it in GitHub Desktop.
SmartNinja_DN3_Marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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