Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created Apr 22, 2015
Embed
What would you like to do?
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