From 322bf1723f8af6191ab820ba8f5bdd3ee7f698d1 Mon Sep 17 00:00:00 2001 From: Bassem Girgis Date: Fri, 16 Jul 2021 20:45:35 -0500 Subject: [PATCH] 1st step --- Cargo.lock | 7 +++++++ src/main.rs | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Cargo.lock diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..a6daf1d --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "variables" +version = "0.1.0" diff --git a/src/main.rs b/src/main.rs index e7a11a9..c4e4a19 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ fn main() { - println!("Hello, world!"); + let mut x = 5; + println!("The value of x is: {}", x); + x = 6; + println!("The value of x is: {}", x); }