mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
14 lines
223 B
Rust
14 lines
223 B
Rust
|
use std::io;
|
||
|
|
||
|
fn main() {
|
||
|
println!("Guess the number!");
|
||
|
|
||
|
println!("Please input your guess.");
|
||
|
|
||
|
let mut guess = String::new();
|
||
|
|
||
|
io::stdin().read_line(&mut guess);
|
||
|
|
||
|
println!("You guessed: {}", guess);
|
||
|
}
|