Search:

Type: Posts; User: andreas90

Search: Search took 0.07 seconds.

  1. Replies
    10
    Views
    5,847

    Re: Hourglass using recursion

    You should try it and see what is happening. But again I suggest you writing down the logicof the program.
    Hint: not sure if you are allowed to use them, but for loops is a very common approach in...
  2. Replies
    10
    Views
    5,847

    Re: Hourglass using recursion

    For this kind of problems you should write down the logic of your program and *test* it in a piece of paper before you implement code.
    Also, what is the variable count? Did you think of a way to...
  3. Replies
    10
    Views
    5,847

    Re: Hourglass using recursion

    Where in your code do you have these spaces? I can only see two print statements in the recursion code -one for stars and the other for an empty line.
  4. Replies
    10
    Views
    5,847

    Re: Hourglass using recursion

    Hello nWeid1!
    I can't see the difference between the output as it should be and the one you actually get. What do you mean by "figure out how to get the spaces"?
Results 1 to 4 of 4