2020 - Validation on entering text instead of numerical values
while (true)
{
Console.Write("Enter X coordinate for new outlet: ");
try
{
x = Convert.ToInt32(Console.ReadLine());
break;
}
catch
{
Console.WriteLine("invalid data");
}
}