Created
May 4, 2023 07:46
-
-
Save inavadeep1205/4612d044ef08d9c7b857e8c530058a9b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Basic Calculator | |
number1 = int(input("Enter your first number = ")) | |
operator = input("Enter your operator = ") | |
number2 = int(input("Enter your second number = ")) | |
if operator == "+": | |
print("Answer = ", number1+number2) | |
elif operator == "-": | |
print("Answer = ", number1-number2) | |
elif operator == "*": | |
print("Answer = ", number1*number2) | |
elif operator == "/": | |
print("Answer = ", number1/number2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment