How to split a number into individual nos
<p>I have a <code>int number = 1782901998</code> whose Length is 10 numbers; I need to split them into 10 different strings. I tried the following code, but it does not give back any output; I need to assign the each number to a string.</p>

<pre><code>string number = 7894;
char[] numberChars = number.ToString().ToCharArray();
int[] digits = new int[numberChars.length];

for(int i = 0; i &lt; numberChars.length; i++) {

    digits[i] = (int)numberChars[i];

 }
</code></pre>

<p>This code only returns <code>57</code> in digits list.</p>