How's the established number to be broken?

I have a mission, a type 57194063 terminal, after which the programme should withdraw the number in writing five, seven, nine, etc., no matter the new line or sequence. If I'd taken the last piece of that, the way I did the rest of the division would be easier. And how to take it from the first row without using the mass so that the mass has not yet passed. I thought it might be possible for the variable to declare the type of char and thus take one symbol and pass through the conditions, but how to take a series of the first number to n, depending on how many numbers you've made, please?

I'll offer you the simplest option:
 Move number to line
NSString* str = [NSString stringWithFormat:@"%i",number]
;  It's great to dissolve her.
There's a little TV on the Internet. How to do my algorithm, you can find without difficulty with a goul. Or if you live in China where access to go google is greedy, give you one example: https://ru.stackoverflow.com/questions/388129/%D0%9A%D0%B0%D0%BA%D1%80%D0%B0%D0%B7%D0%B1%D0%B8%D1%82%D1%8C%D1%81%D1%82%D1%80%D0%BE%D0%BA%D1%83%D0%BD%D0%B0%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D1%8B%D0%B2objectivec
If you do manually, you'll have to find a consistent division. Number one, bite her off, and repeat the process until all the numbers They will be removed. ♪ https://ru.stackoverflow.com/users/10105/vladd
This option You can think about it, too.
 Move number to line