using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
// what will the output be?
// update the code to execute DoStuff methods asynchronously
// what do you think the output will be now?
public static void Main(string[] args)
var one = DoStuff1();
var two = DoStuff2();
var three = DoStuff3();
Console.WriteLine($"{one}, {two}, {three}");
Console.ReadLine();
}
static int DoStuff1()
Thread.Sleep(10000);
Console.WriteLine("1");
return 1;
static int DoStuff2()
Thread.Sleep(5000);
Console.WriteLine("2");
return 2;
static int DoStuff3()
Thread.Sleep(1000);
Console.WriteLine("3");
return 3;