This commit is contained in:
2026-03-29 11:28:57 +07:00
parent 2aaf0d8b6b
commit 39638b77c7
4 changed files with 143 additions and 1 deletions

View File

@@ -1,3 +1,16 @@
/* --------------------------------------------- 100 -------------------------------------------- */
use std::io;
fn main() {
println!("Hello, world!");
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line!");
println!("You guessed: {guess}");
}