Testing if a character is in a word
Console.WriteLine("please enter a word:"); string word = Console.ReadLine(); string vowels = "aeiou";
foreach(char c in word) { if(vowels.Contains(c.ToString())) { Console.WriteLine("Vowel found: "+c); } }
Console.ReadLine();