0
How can I convert an no. into digits in array,ex. If i get 1234 as a number i need to get itas single digits 1,2,3,4 in array?
Input-1234 (Add number in second and fourth place 2+4=6) Output-6
1 Antwort
+ 3
There a lot of ways you can do that, some might need a couple of conversion steps to be performed. From string to int or vice-versa.
Try what ~ swim ~ has mentioned.
If you still struggle then let us know.