fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string a = "hui", b = "pizda";
  9.  
  10. var c = a.SelectMany(x => b.Select(y => x +" "+ y));
  11.  
  12. foreach (var elem in c)
  13. Console.WriteLine(elem);
  14. }
  15. }
Success #stdin #stdout 0.04s 24000KB
stdin
Standard input is empty
stdout
h p
h i
h z
h d
h a
u p
u i
u z
u d
u a
i p
i i
i z
i d
i a