hello
i need to print in recursion 2 triangles.. for example if num=3 then it will be:
***
**
*
*
**
***
i know how to do each triangle in recursive, my question is how to do the 2 triangles together in 1 recursive function..
in the code below i united the 2 triangles together in 1 function..
Sorry but im studying c++ not c..
And its not bool.. Just the parameters i used.
Thanks for help anyway..
If someone else can help me to understand how to do the 2 triangles in recursion that would be good
cire did give you c++.... Also the solution you ask for cannot be done. There has to be more parameters.
I stand corrected. See cire's post below. I must confess I have been spending too much time learning tail recursive oriented programming languages such as ML. I like my accumulators. What can I say?
Also the solution you ask for cannot be done. There has to be more parameters.
More parameters are only required if the solution must be tail recursive, but I thought the OP could use a little more time to think on the solution. ;)