From 43273aefa9cea8b4322e67ce2175cc38fd4f0e05 Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Sat, 11 Nov 2023 15:41:58 +0530 Subject: [PATCH 1/2] Exercise 4 --- exercises/01_variables/variables2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/01_variables/variables2.rs b/exercises/01_variables/variables2.rs index e1c23edf..e697dcd7 100644 --- a/exercises/01_variables/variables2.rs +++ b/exercises/01_variables/variables2.rs @@ -3,10 +3,10 @@ // Execute `rustlings hint variables2` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE + fn main() { - let x; + let x: i32 = 0; if x == 10 { println!("x is ten!"); } else { From 65e2d43ac71839fb6486d03b08e4f1ca924b5210 Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Sat, 11 Nov 2023 15:45:41 +0530 Subject: [PATCH 2/2] Exercise 5 --- exercises/01_variables/variables3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/01_variables/variables3.rs b/exercises/01_variables/variables3.rs index 86bed419..3935a112 100644 --- a/exercises/01_variables/variables3.rs +++ b/exercises/01_variables/variables3.rs @@ -3,9 +3,9 @@ // Execute `rustlings hint variables3` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE + fn main() { - let x: i32; + let x: i32 =0; println!("Number {}", x); }