looping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aplr2575
    New Member
    • Nov 2007
    • 1

    #1

    looping

    Hello everyone! kindly help me code this problem! the output should look like this!

    *
    * *
    * * *
    * *
    *


    thank you
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Hi, what have you tried yourself sofar? Think of the lines as number 2, 1, 0, -1
    and -2; try to find a relation between the number of leading spaces, the number
    of stars and the line number.

    kind regards,

    Jos

    Comment

    Working...