separete numbers

guys,i need to separate numbers according to their occurrences
eg
if given number i= 34254
then
1st is 3
2nd is 4
3rd is 2
4th is 5
5th is 4
i used
i=i%10;
i=i/100%10;
....
and i separeted it.but i need to give collection of numbers and i shoul print in like above one
eg
12132
23124
14314
ans should be
1st is 121
2nd is 234
...
I used arrays and everything I know. I can't figure it out. please provide me code and descriptions. Thanks in advance
Last edited on
Why don't you post your code ?
Topic archived. No new replies allowed.