code_games/guess/src/main.rs

20 lines
388 B
Rust
Executable File

use std::io;
use std::io::Write;
fn main() {
let mut theguess_tm = String::new();
println!("Hello noob");
print!("Guess a number or something lol: ");
io::stdout()
.flush()
.expect("couldn't flush ?");
io::stdin()
.read_line(&mut theguess_tm)
.expect("Stinky computer lol ur mom");
println!("ur guess was: {}", theguess_tm);
}