i was wondering how to strip off digits one by one and store them into an array so i can sort them. For example if the user entered 7216. take the 7 stor into cell one, take 2 store it cell 3 ettc and then sort it so it looks like this 1267 and then output it back as a whole number instead of segments in other words tak 1 2 6 7 and concatenate it so it looks like 1267 whic is one thosand two hundred sixty seven. i'm not sure if i need a loop or not.
i was tinking something like this:
if(n < 10)
store n in tan array
else
n/10 store in array
n % 10 store it in an array until done
if any one can clear this up i'd greatly appreciate, i know how to sort it i already wrote the sort and tested it on ints and that works fine, just need a way of stripping each digit one by one and storing into an array.