Step through your code line by line and watch variables, function calls and output change at each step.
A clear way to understand loops and recursion, and to find bugs.
// Online Scala compiler (editor)// Write and run Scala online using this editor.object Main {def main(args: Array[String]) = {println("Try clicking the Run button.")}}