public static void Main()
int[] arr = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for(int a=0;a<arr.Length;a++)
for(int b=0;b<arr.Length;b++)
for(int c=0;c<arr.Length;c++)
for(int d=0;d<arr.Length;d++)
Console.WriteLine(a + "" + b + "" + c + "" + d);
Console.WriteLine("Total: " + counter);