Created
January 29, 2017 17:50
-
-
Save trendsetter37/cae42f6b26b936aa9e6567482f7b721f to your computer and use it in GitHub Desktop.
Revisions
-
trendsetter37 created this gist
Jan 29, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ use std::io; fn main() { let mut input = String::new(); io::stdin().read_line(&mut input) .expect("Failed to read line."); let test_cases: u16 = input .trim() // trim new line char .parse() .expect("Failed to parse unsigned int."); println!("test_cases: {}", test_cases); }