Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

number to number array

public int[] IntegerArrayNum(int num)
    {
        var ls = new List<int>();
        foreach ( var i in num.ToString().ToCharArray())
        ls.Add(Convert.ToInt32(i.ToString()));
        return ls.ToArray();
    }
Source by paiza.io #
 
PREVIOUS NEXT
Tagged: #number #number #array
ADD COMMENT
Topic
Name
7+3 =