My code below looks only for one letter, how can I look for combination of letters? For ex.: to find letters "ac" in my array and to output them to textBox2
string[] alphabet = new string[] { "a", "b", "c"};
for (int letter = 0; letter < alphabet.Length; letter++)
{
if (textBox1.Text == alphabet[letter])
textBox2.Text = alphabet[letter];
}
textBox1.Textare in thealphabet?string[], do you want to ouput the complete string[]? If so, what is the desired result? Mabye:string.Join(",", alphabet )