title: C# Task not completing (no results in command prompt)
body: <pre><code>using System;
  using System.Threading.Tasks;
  
  namespace _1._8_Starting_A_New_Task
  {
      public static class Program
      {
          public static void Main()
          {
              Task t = new Task(() =&gt;
              {
                  for (int x = 0; x &lt; 100; x++)
                  {
                      Console.Write('*');
                  }
              });
  
              t.Wait();
          }
  
      }
  }
  </code></pre>
  
  <ul>
  <li>This application compiles and runs displaying a blank screen (waiting on the task to complete)</li>
  <li>The task stays in a waiting state</li>
  <li>No output is displayed/written to console</li>
  <li>Why not?</li>
  <li>Application stays in "wait" state permanently</li>
  <li>Why?</li>
  <li>Goal of code:  Start a new task, wait for task to complete, exit application</li>
  </ul>