summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-30 11:38:51 -0600
committermo khan <mo@mokhan.ca>2025-05-30 11:38:51 -0600
commita4a1c532c5548471070d175ba33a489c9de00625 (patch)
tree6ecfdbd3164158b8c2a359d8f09a4961777280ed /src
initial commit
Diffstat (limited to 'src')
-rw-r--r--src/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..f9464ce
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,10 @@
+fn main() {
+ println!("Guess the number!");
+ println!("Please input your guess");
+
+ let mut guess = String::new();
+ std::io::stdin()
+ .read_line(&mut guess)
+ .expect("failed to read line");
+ println!("You guessed: {}", guess);
+}