diff --git a/HelloWorld/HelloWorld.cs b/HelloWorld/HelloWorld.cs index 8168c805..636eaa64 100644 --- a/HelloWorld/HelloWorld.cs +++ b/HelloWorld/HelloWorld.cs @@ -1,12 +1,22 @@ using System; -namespace HelloWorld +public class Program { - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - } - } + public static void Main() + { + string carType = ""; + string model = ""; + int year = 0; + + Console.WriteLine("What is the make of your favorite car:"); + carType = Console.ReadLine(); + Console.WriteLine("What is the model of your favorite car:"); + model = Console.ReadLine(); + Console.WriteLine("Please enter the year:"); + year = Convert.ToInt32(Console.ReadLine()); + + Console.WriteLine("You wish you had a {1} {0}.", carType, model, year ); + + } + }