title: Use of Async and await in console Application
body: <p>I have four methods. </p>
  
  <ol>
  <li>Main: only calls the preform method </li>
  <li>Working: displays "please wait for the user" </li>
  <li>Taking Time: A program that takes time to execute. </li>
  <li>Preform: Calls the taking time and working methods asynchronously.</li>
  </ol>
  
  <p>The following is my code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading;
  using System.Threading.Tasks;
  
  namespace AsyncObservation
  {
      class Program
      {
          static void Main(string[] args)
          {
              preform();
          }
          public static async Task Working()
          {
              Console.WriteLine("Please wait, the program is running");  
          }
          public static async Task Takingtime()
          {
              Console.WriteLine("This Program started");
              Thread.Sleep(1000);
              Console.WriteLine("The Program finished"); 
          }
          public static async void preform()
          {
              Task timer = Takingtime();
              Task wait = Working();
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <p>In the end: I need to display</p>
  
  <pre><code>This program started. 
  Please wait, the program is running 
  The program ended.
  </code></pre>