Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created April 22, 2015 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstrie/254ec7e71ae25c7adc0e to your computer and use it in GitHub Desktop.
Save bstrie/254ec7e71ae25c7adc0e to your computer and use it in GitHub Desktop.
use std::io::BufRead;
fn main() {
let stdin = std::io::stdin();
for line in stdin.lock().lines().take(2) {
println!("{}", line.unwrap());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment