Cross Product of two Strings by George2k

using System;\x0d
\x0d
class CrossProductOfTwoStrings\x0d
{\x0d
    static void Main()\x0d
    {\x0d
        string input = Console.ReadLine();\x0d
        while (input.Length > 0)\x0d
        {\x0d
            string output = string.Empty;\x0d
            string[] words = input.Split(' ');\x0d
            for (int i = 0; i < words[0].Length; i++)\x0d
            {\x0d
                for (int j = 0; j < words[1].Length; j++)\x0d
                {\x0d
                    output += string.Format("{0}{1} ", words[0][i], words[1][j]);\x0d
                }\x0d
            }\x0d
            Console.WriteLine(output.Remove(output.Length - 1));\x0d
            input = Console.ReadLine();\x0d
        }\x0d
    }\x0d
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page