I need help with this code. I want to split words in foreach loop like this but I don't want a ,
after the last word. Any suggestions?
var listOtherWords = (from o in Words
where !o.ToUpper().StartsWith("A")
where !o.ToUpper().StartsWith("B")
where !o.ToUpper().StartsWith("C")
select o).ToList();
Console.WriteLine();
Console.Write("Other Words: ");
foreach (string o in lisOtherWords)
{
Console.Write(o + " ,");
}
Console.ReadLine();