I'm a beginner at Lua and programming in general and I just made a simple calculator and I was wondering where I could make improvements.print(Choose numbers:)print(Num1:)local num1 = io.read()print(num2:)local num2 = io.read()print(Choose operator: + / - / * / /)local operator = io.read()if operator == + then   local add = num1 + num2   print(add)     end if operator == - then   local subtract = num1 - num2   print(subtract)   endif operator == * then   local multiply = num1 * num2   print(multiply)end   if operator == / then     local devide = num1 / num2   print(devide) endio.read()
Simple four-operation calculator in Lua
beginner;calculator;lua