Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __main__:
- x = input("Выберите оператор: + - * /")
- a = input("Первое число: ")
- b = input("Второе число: ")
- if x == "+":
- result = a + b
- elif x == "-":
- result = a - b
- elif x == "*":
- result = a * b
- elif x == "/":
- result = a / b
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement