Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created April 22, 2015 10:44
Show Gist options
  • 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