using System;
using System.Linq;
class Program
{
static void Main() {
char[] letters = "abcd".ToCharArray();
char[] digits = "1234".ToCharArray();
var result = letters.SelectMany(x => digits, (x, y) => new { x, y });
foreach (var pair in result) {
Console.WriteLine("{0}{1}", pair.x, pair.y);
}
}
}
/*
run:
a1
a2
a3
a4
b1
b2
b3
b4
c1
c2
c3
c4
d1
d2
d3
d4
*/