Creating 2 numbers from a one #C
<p>I should create two new numbers from a one, the first group will contain digits which are divisible by 2 and the other group will contain the others.</p>

<pre><code>int checkCount = 94321, num1 = 94321, count2 = 0, countRest = 0;

        while (checkCount &gt; 0)
        {   
            if (checkCount % 2 == 0)
                count2++;
            else
                countRest++;
            checkCount /= 10;
        }

        int[] a = new int[count2];
        int[] b = new int[countRest];

        int k2 = 0, kRest = 0;

        for (int j = 0; j &lt; a.Length + b.Length; j++) 
        {
            if (num1 % 2 == 0)
            {
                a[k2] = num1 % 10;
                k2++;
            }
            else
            {
                b[kRest] = num1 % 10;
                kRest++;
            }
            num1 /= 10;
        }
</code></pre>

<p>I created two arrays with the numbers I should use, now how can I build two INT varabile when each one contains all of the numbers together from the array?</p>

<p>Example:
If I have this number - 12345 so
var = 24, other var = 135</p>

<p>If you have another solution without arrays I think it will be better.
Thank you.</p>
