Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- so1 = float(input("Mời bạn nhập số thứ nhất:"))
- so2 = float(input("Mời bạn nhập số thứ hai:"))
- phep = input("Mời bạn nhập phép tính:")
- if phep =="+":
- print (so1+so2)
- elif phep == "-":
- print (so1-so2)
- elif phep == "*":
- print(so1*so2)
- elif phep =="/":
- print (so1/so2)
- else:
- print("Bạn đã nhập sai phép tính")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement