0
Can any one help me solving this code by only recursion
***** ***** ***** ***** *****
6 Réponses
+ 5
Write two recursive functions. They both have a count parameter. If their count is greater than zero, they call themselves with a count that is one less than theirs.
Afterwards, the first one outputs a single '*'. The second one calls the first with a count of 4. The main program calls the second one with a count of 4 to start it all off.
+ 5
E.naraharireddy Seeing your problem was resolved already it would be great if you can mark the answer that you find useful to encourage the community to help each other out. 😉
+ 2
Compiles but doesn't run correctly.
https://code.sololearn.com/c5619XW03Cd9
Compare it to yours to see what I did to fix your compile errors. Besides my comment on your code, you were missing many semicolon.
+ 2
tqs a lot sir ...... it runs correctly ..
+ 1
This one has minor changes to fix your logic errors. Compare it to see what was fixed.
https://code.sololearn.com/ckmx3EQ2Zfhd
0
Where is your try?