Created
January 27, 2016 21:19
-
-
Save PerArneng/dd83ca578963887d7ec0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
use std::io; | |
use std::io::Write; | |
fn main() { | |
let mut input = String::new(); | |
let result = io::stdin().read_line(&mut input) | |
.map(|s:usize| input) | |
.and_then(|s:String| s.parse::<u32>()); | |
println!("{}", result.unwrap()); | |
} |
Author
PerArneng
commented
Jan 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment