exercises-scalatutorial
exercises-scalatutorial copied to clipboard
Make code for sqrt examples actually run
The example code for sqrt
didn't run when copy-pasted to a console.
This change uses math.abs
and math.pow
instead of just abs
and square
so it does.
Sorry, didn't realize you were going to approve as is. Amended with guess*guess and fixed another instance of the same problem.