Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(true){
- val readLine = scala.io.StdIn.readLine()
- // Quit the calculator if q or quit were entered
- if(readLine == "q" || readLine == "quit")
- return
- else
- println(evaluateExpression(readLine))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement