Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Standartcode на консоль
- what = input( "Что делаем (+, -, *, :, ): " )
- a = float( input("Вести первое число: "))
- b = float( input("Вести второе число: "))
- if what == "+":
- c = a + b
- print("Ответ: " + str(c))
- elif what == "-":
- c = a - b
- print("Ответ: " + str(c))
- elif what == "*":
- c = a * b
- print("Ответ: " + str(c))
- elif what == ":":
- c = a / b
- print("Ответ: " + str(c))
- elif what == "//":
- c = a // b
- print("Ответ: " + str(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement