Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Enter the first number:")
- a = read()
- print("Enter the second number:")
- b = read()
- print("Choose operation (+, -, *, /)")
- operation = read()
- if operation == "+" then
- print("Result ",a+b)
- end
- if operation == "-" then
- print("Result ",a-b)
- end
- if operation == "*" then
- print("Result ",a*b)
- end
- if operation == "/" then
- print("Result ",a/b)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement