Ok I'll try to write it down. And yeah my teacher said we can't use any for loops, hence the reason I'm using recursion in the first place
Type: Posts; User: nWeid1
Ok I'll try to write it down. And yeah my teacher said we can't use any for loops, hence the reason I'm using recursion in the first place
Yeah I figured I could use count so that every line of stars there should add 1 space before the next line of stars. I also thought of creating a separate method just for the spaces but I don't know...
Well, I don't. I don't know where to implement the code to have them print out properly which is my problem.
I just updated it. for some reason it won't display the spaces unless its
I have to write a recursive program that makes an hourglass that suites the size of the user's input. For example, if the user types 4, this should print:
* * * *
* * *
* *
*
* *
...