Guess is shit

This commit is contained in:
Bit Borealis 2022-05-06 20:15:52 +00:00
parent 5355d14e3b
commit 7fb534c57a
Signed by: theotheroracle
GPG Key ID: 2D816A2DCA6E5649
3 changed files with 4 additions and 20 deletions

2
guess/Cargo.toml → collatz/Cargo.toml Executable file → Normal file
View File

@ -1,5 +1,5 @@
[package]
name = "hello"
name = "collatz"
version = "0.1.0"
edition = "2021"

3
collatz/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View File

@ -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);
}