1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating rows of asterisks???

Discussion in 'C++' started by wakesin, Sep 1, 2010.

  1. wakesin

    wakesin New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hey there.

    So I am in need of some help with a project I have.

    We need to create a program that will print out rows of asterisks as tall as defined by the user.
    For example, if the user entered, 1 2 3 4 3 2 1 10 0, my program should print:
    Code:
           *
           *
           *
           *
           *
           *
       *   *
      ***  *
     ***** *
    ********
    1 star in the first row, 2 in the 2nd, and so on.

    so far all i have is that i need to place the numbers in an array.....I am very lost and any insight would be appreciated!
     

Share This Page