Advertisement
alllllix

Untitled

Dec 8th, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. print("Enter the first number:")
  2. a = read()
  3. print("Enter the second number:")
  4. b = read()
  5. print("Choose operation (+, -, *, /)")
  6. operation = read()
  7. if operation == "+" then
  8.     print("Result ",a+b)
  9. end
  10. if operation == "-" then
  11.     print("Result ",a-b)
  12. end
  13. if  operation == "*" then
  14.     print("Result ",a*b)
  15. end
  16. if operation == "/" then
  17.     print("Result ",a/b)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement