Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #первое число
- p=int(input())
- #знак
- zn=input()
- #второе число
- v=int(input())
- if (zn == "+"):
- #ответ
- ot=p+v
- elif (zn == "-"):
- ot=p-v
- elif (zn == "*"):
- ot=p*v
- elif (zn == "/"):
- ot=p/v
- print (str(p) + zn + str(v) + "=" + str(ot))
Advertisement
Add Comment
Please, Sign In to add comment