How do I get "No match" just once to the screen if entered key or word is not in the array list?
I made a code if the entered key is in the array so the words will be listed in different lines,but if the key is not ,then there should be just one "No match" to the screen My code///// using System; using System.Collections.Generic; using System.Linq; 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(); for( int count = 0;count<10;count++){ if(words[count].Contains(letter)) { Console.WriteLine(words[count]); }} } } }