Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions HelloWorld/HelloWorld.cs
Original file line number Diff line number Diff line change
@@ -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 );

}

}