mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-22 13:38:04 +08:00
14 lines
221 B
Rust
Executable File
14 lines
221 B
Rust
Executable File
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}");
|
|
}
|