Hi, I had to make a program using recursion.It works like this - when you type a number , it returns an array which consist of the number's digits. I have an idea for the algorythm but I can't make the code. That's what I came up with...
I`m not sure what you're doing here. Recursion involves amoungst other things the calling of the function from within that function. You appear to have declared two functions: counting() and zapis(). However I can`t see where you have called either from within either (respectively).
i.e. counting() from within counting() or zapis() from within zapis()
:D ...that's the problem... I know how to make the code for this program without recursion...but I can't make it using recursion and that's why it looks so bad. The idea is to use the second function for separating the digits (int counting) and it has to call itself.