title: Is there any shorter way of writing this code?
body: <p>I am extremely new to programming, currently just messing around with console apps. I've created a few things like a login screen and a currency converter but that was with aid from teachers. Never done anything by myself.</p>
  
  <p>I'm wondering if there's any better/shorter way of writing this?
  Module Module1</p>
  
  <pre><code>Sub Main()
      Dim x As String
      Dim Y As String
      Dim yes As String
      Dim no As String
      x = "Please enter your name:"
      Y = "Please enter 'Y' or 'N'"
      yes = "Y"
      no = "N"
      Console.WriteLine(x)
      Console.ReadLine()
      Console.WriteLine("Do you wish to continue?")
      yes = Console.ReadLine()
      Console.WriteLine(Y)
      If yes = "Y" Then
          Console.WriteLine("You selected to continue")
      Else
          If no = "N" Then
              Console.WriteLine("You selected to exit")
              Environment.Exit(0)
          End If
      End If
      Console.WriteLine("TEXT HERE") 'Text here as I don't know what to put next yet
      Console.ReadLine()
      Console.ReadLine() 'Just put this here so it doesn't exit straight away
  End Sub
  </code></pre>
  
  <p>I had declared some variables just to try it out rather than just have Console.WriteLine("TEXT") constantly. I'm just trying to find ways of doing things.
  I just ran the code again and saw that it's case sensitive to the user input, how would I go about having it be either Y or y and N or n?</p>