title: All possible combinations out of 2 Arrays
body: <p>I have 2 Arrays:</p>
  
  <pre><code>  A {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} 
    B {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
  </code></pre>
  
  <p>I want to make the user be able to input a x number and then the program should print out all possible multiplications that <code>= x</code>.
  the multiplication that <code>= x</code> should be made of 2 numbers 1 of array A and the other number from array B. The numbers cannot be the same.</p>
  
  <p>I've been searching and the only thing I think could work is a nested loop.
  I am doing this little project in C# but I kindly don't care if it's in Java I understand also Java.
  Thanks in advance for the help.</p>
  
  <pre><code>int num_user;
          int[] x = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, };
          int[] y = new int[9];
          Console.WriteLine("Hello please input the number  you think could be the solution :) ");
          num_user = Convert.ToInt32(Console.ReadLine());
          for (int a = 0; a &lt; x.Length; a++ )
              for (int b = 0; b &lt; y.Length; b++)
                  if num_user == a*b //and here is where I get lost
  </code></pre>