I am learning C# and I am using VS Code, when I tried to take input from user using Console.ReadLine() it's not working.
I referred from a video which did exactly same thing and still after a couple of Google searches I couldn't figure out where I went wrong.
Console.WriteLine("Enter your name : ");
string name = Console.ReadLine();
Console.WriteLine("Hi! {0}", name);
My main method has only this 3 lines and it always gives as output something like this:
It never prints the last line of code