Skip to content

Instantly share code, notes, and snippets.

@ayushmishra2005
Created September 8, 2017 20:39
Show Gist options
  • Save ayushmishra2005/5c0041a7df679ae03d447e670679c800 to your computer and use it in GitHub Desktop.
Save ayushmishra2005/5c0041a7df679ae03d447e670679c800 to your computer and use it in GitHub Desktop.
Take first 2 lines of input and print the sum
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