using System.Collections.Generic;
static void Main(string[] args)
List<string> names = new List<string>() {"Alice", "Bob", "Charlie", "David", "Eve"};
Console.WriteLine("The original list of names is:");
foreach (string name in names)
Console.WriteLine("\nEnter a name to add to the list:");
string newName = Console.ReadLine();
Console.WriteLine("\nThe updated list of names is:");
foreach (string name in names)
Console.WriteLine("\nEnter a name to remove from the list:");
string removeName = Console.ReadLine();
bool removed = names.Remove(removeName);
Console.WriteLine($"\n{removeName} was removed from the list.");
Console.WriteLine($"\n{removeName} was not found in the list.");
Console.WriteLine("\nThe final list of names is:");
foreach (string name in names)