static string[] E = new string[] {"band", "bond", "bear", "cars", "fond", "food", "foot", "hand", "head"};
static bool IsMatchOn3Characters(string s1, string s2)
for (int i = 0; i < s1.Length - 1; i++)
if (s2.IndexOf(s1.Substring(i,2)) >= 0)
public static void Main(String []args)
"Enter the first string : ");
"Enter the second string : ");
"\nString transformation are : ");
if (IsMatchOn3Characters(M1,s))
sResult = sResult + ", " + s;