Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("num1")
- num1=int(input())
- print("num2")
- num2=int(input())
- print("enter your operator +,-,/,*")
- num3=(input())
- if num1==56 and num2==3 and num3=="*":
- print("555")
- elif num1==45 and num2==6 and num3=="+":
- print("77")
- elif num3=="+":
- plus=num1+num2
- print(plus)
- elif num3 == "*":
- mul = num1 * num2
- print(mul)
- elif num3 == "/":
- div= num1 / num2
- print(div)
- elif num3 == "-":
- sub = num1 - num2
- print(sub)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement