Created
September 8, 2017 20:39
-
-
Save ayushmishra2005/5c0041a7df679ae03d447e670679c800 to your computer and use it in GitHub Desktop.
Take first 2 lines of input and print the sum
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
object Sum { | |
def main(args: Array[String]) { | |
println(io.Source.stdin.getLines().take(2).map(_.toInt).sum) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment