Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Let's do some maths")
- a=int(input("enter number1: "))
- b=int(input("enter number2: "))
- command=input("choose operation: ")
- if command=="+":
- result=a+b
- print(a, "+" ,b, "=",result)
- elif command=="-":
- output=a-b
- print(a, "-" ,b, "=",output)
- else:
- print("Sorry I dont understand what is this kind of operation")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement