done chapter2
This commit is contained in:
parent
76e0c04081
commit
9d23dc5e83
@ -5,7 +5,6 @@ use std::io;
|
|||||||
fn main() {
|
fn main() {
|
||||||
println!("Guess the number!");
|
println!("Guess the number!");
|
||||||
let secret_number = rand::thread_rng().gen_range(1..=100);
|
let secret_number = rand::thread_rng().gen_range(1..=100);
|
||||||
println!("psst. the secret number is {secret_number}");
|
|
||||||
loop {
|
loop {
|
||||||
println!("Please input your guess.");
|
println!("Please input your guess.");
|
||||||
let mut guess = String::new();
|
let mut guess = String::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user