diff options
Diffstat (limited to 'rust/hello.rs')
-rw-r--r-- | rust/hello.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/hello.rs b/rust/hello.rs new file mode 100644 index 0000000..851beed --- /dev/null +++ b/rust/hello.rs @@ -0,0 +1,6 @@ +use std::io; +fn main() { + let mut name = String::from("World"); + io::stdin().read_line(&mut name).ok(); + println!("Hello, {}", name); +} |