This commit is contained in:
robin 2024-04-02 20:39:49 +02:00
parent d267e73b24
commit f49de5ddb3

11
main.rs Normal file
View file

@ -0,0 +1,11 @@
use rand::Rng;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut secretnumber: i32 = rand::thread_rng().gen_range(1..=3);
let mut guess = String::new();
if guess == secretnumber {
println!("Tot");
};
}