title: Console.ReadLine() not working in VS Code, writing a code in C#
body: <p>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.</p>
  
  <p>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.</p>
  
  <pre><code>Console.WriteLine("Enter your name : ");
  string name = Console.ReadLine();
  Console.WriteLine("Hi! {0}", name);
  </code></pre>
  
  <p>My main method has only this 3 lines and it always gives as output something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/BUe52.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BUe52.png" alt="enter image description here"></a></p>
  
  <p>Screencast: <a href="https://i.stack.imgur.com/lVx5P.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/lVx5P.gif" alt="enter image description here"></a></p>
  
  <p>It never prints the last line of code</p>