Help on "Words" Problem.
So I did the code, but shows no output. No idea where did i go wrong. Please help. using System; using System.Collections.Generic; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { string[] words = { "home", "programming", "victory", "C#", "football", "sport", "book", "learn", "dream", "fun" }; string letter = Console.ReadLine(); int count = 0; //your code goes here foreach (var i in words) { if(words[i].Contains(letter)) { Console.WriteLine(words[i]); count++; } } if (count == 0) { Console.Write("No match"); } } } }