public static void Main()
Console.WriteLine("Welcome to the to do list program");
List<string> taskList = new List<string>();
Console.WriteLine("What would you like to do?");
Console.WriteLine("Enter 1 to add a task to the list.");
Console.WriteLine("enter 2 to remove a task for the list");
Console.WriteLine("Enter 3 to view the list");
Console.WriteLine("Enter e to exit the program");
option = Console.ReadLine();
Console.WriteLine("Please enter the name of the task to add to the list.");
string task = Console.ReadLine();
Console.WriteLine("Task added to the list");
for(int i = 0; i < taskList.Count; i++)
Console.WriteLine(i + " : " + taskList[i]);
Console.WriteLine("Please enter the number of the task to remove from the list");
int taskNumber = Convert.ToInt32(Console.ReadLine());
taskList.RemoveAt(taskNumber);
Console.WriteLine("Current tasks in the list");
for(int i = 0; i < taskList.Count; i++)
Console.WriteLine(taskList[i]);
Console.WriteLine("Exiting program");
Console.WriteLine("Invaild option, please try agian.");
Console.WriteLine("Thank you for using the program!");