So I've been teaching myself Visual Basic / Watching tutorials when I dont understand lately, and I'm trying to make a console application that when executed will ask you for your name, then output Hello (Your name)
Here's my code, I have no clue why it doesnt work...
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
//Changes Title
Console.Title = "Test";
//Declares "Name" As A String
//And Sets It Equal To The Value
//Of Console.ReadLine();
string Name = Console.ReadLine();
//Outputs A Question
Console.WriteLine("Whats Your Name?");
//Reads The Console.WriteLine
Console.ReadLine();
//Outputs Hello and then the string value of Name
Console.WriteLine("Hello ", Name);
//Keeps Console Open
Console.ReadLine();
}
}
}