Natalia__krkrkr

задача на операции

Aug 7th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1.  
  2. x = int(input("Введи число до 30000"))
  3. y = int(input("Введи число до 30000"))
  4. z = input("Введи знак +, -, *, /")
  5. if z == "+" and x < 30000 and y < 30000:
  6.     m = x+y
  7.     print(m)
  8. elif z == "-" and x < 30000 and y < 30000:
  9.     m = x - y
  10.     print(m)
  11. elif z == "*" and x < 30000 and y < 30000:
  12.     m = x*y
  13.     print(m)
  14. elif z == "/" and x < 30000 and y < 30000:
  15.     m = x/y
  16.     print(m)
  17. else:
  18.     print("Вы даун")
Advertisement
Add Comment
Please, Sign In to add comment