How to split the interger into an array? : I need to split the integer into an array. 

For example,

The interger variable a contains 48. 

    a = 48

I need to split the 48 into an array based on the count of 10. 

I need to get the array like,

    arr = [ 10, 20, 30, 40, 48]

I know the split method and also I know how to split the string into an array based one the character available in the string. but i don't know how to use the split method splitting the integer into an array based on the count.

Any one please explain me how to do this ?

Thanks in advance!