Last active
December 26, 2015 14:28
-
-
Save globby/7165393 to your computer and use it in GitHub Desktop.
DailyProgrammer #138 Scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math._ | |
val g = () => Console.readLine("Params: ").split(' ') map ((x) => x.toFloat) | |
val a = g() | |
val b = g() | |
println(pow(a(0), 2)/(pow(a(1)-b(1), 2) + pow(a(2)-b(2), 2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment