Guess is shit
This commit is contained in:
parent
5355d14e3b
commit
7fb534c57a
2
guess/Cargo.toml → collatz/Cargo.toml
Executable file → Normal file
2
guess/Cargo.toml → collatz/Cargo.toml
Executable file → Normal file
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "hello"
|
||||
name = "collatz"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
3
collatz/src/main.rs
Normal file
3
collatz/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
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);
|
||||
}
|
Loading…
Reference in a new issue