From c2ccac270a1e60dd286a12816d9496cb382b12d4 Mon Sep 17 00:00:00 2001 From: RuiJ72 Date: Sun, 23 Feb 2025 19:35:32 -0300 Subject: [PATCH 1/2] Variables and Github --- Src/BootCamp.Chapter/Program.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/BootCamp.Chapter/Program.cs b/Src/BootCamp.Chapter/Program.cs index dc9c6bf6e..e5589af40 100644 --- a/Src/BootCamp.Chapter/Program.cs +++ b/Src/BootCamp.Chapter/Program.cs @@ -6,7 +6,13 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Welcome to Homework - Working with Variables and GitHub"); + Console.Write("\nPlease enter your name: "); + string name = Console.ReadLine(); + Console.Write("Now, enter your age: "); + int age = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine($"\nYour name is {name} and you have {age} old!"); } } } From 0f39b3ae07a78a19c882f0c6a6d99234b519b747 Mon Sep 17 00:00:00 2001 From: RuiJ72 Date: Sun, 23 Feb 2025 20:31:19 -0300 Subject: [PATCH 2/2] Refactoring the output --- Src/BootCamp.Chapter/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/BootCamp.Chapter/Program.cs b/Src/BootCamp.Chapter/Program.cs index e5589af40..312a87996 100644 --- a/Src/BootCamp.Chapter/Program.cs +++ b/Src/BootCamp.Chapter/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) Console.Write("Now, enter your age: "); int age = Convert.ToInt32(Console.ReadLine()); - Console.WriteLine($"\nYour name is {name} and you have {age} old!"); + Console.WriteLine($"\nYour name is {name} and you have {age} old!.".ToUpper()); } } }