+ 3
Recurrsion
guys I can't understand the concept of recursion algorithm...plz help me!!!
4 Answers
+ 2
tq
- 1
Donât have an answer but cute dog!
- 1
usually a recursion function Has a condition Statement, If that is true, recursion is finished. while it's Not true, the recursion is working, this means the function calls itself.
int recursion(int a, int b)
If (a==0): // recursion is finished
return a;
else: // recursion going on
return recursion(a-1,b); //calling itself with slightest
//modified Parameter, making Sure that 'a' IS 0 eventually,
//and recursion stops