Search:

Type: Posts; User: nWeid1

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    5,849

    Re: Hourglass using recursion

    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
  2. Replies
    10
    Views
    5,849

    Re: Hourglass using recursion

    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...
  3. Replies
    10
    Views
    5,849

    Re: Hourglass using recursion

    Well, I don't. I don't know where to implement the code to have them print out properly which is my problem.
  4. Replies
    10
    Views
    5,849

    Re: Hourglass using recursion

    I just updated it. for some reason it won't display the spaces unless its
  5. Replies
    10
    Views
    5,849

    Hourglass using recursion

    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:



    * * * *
    * * *
    * *
    *
    * *
    ...
Results 1 to 5 of 5