title: How to stop program executing further in C#
body: <pre><code>string FirstName = Console.ReadLine();
              if (FirstName.Length &gt; 12)
              {
                  Console.WriteLine(".......................................");
              }
              if(FirstName.Length&lt;3)
              {
                  Console.WriteLine("....................");
              }
              Console.WriteLine("...................");
              string SecondName = Console.ReadLine();
              if (SecondName.Length &gt; 12)
              {
                  Console.WriteLine(".............................");
              }
              if(SecondName.Length&lt;3)
              {
  </code></pre>
  
  <p>I want to stop the program if they press enter without putting a value,how to do it??/?</p>