please,help!!

Discussion in 'C' started by ice woman, May 28, 2010.

  1. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    hi everyone

    I've looked everywhere for that request and I've not found it

    and i wish if you could help me in that.

    I need the code of the star shape and it should be drown by (*)

    also with (The use of loop for ) only

    the last thing i want the gorithem of the code (the star)

    I'm Thankful for your cooperation​
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Don't annoy people by posting unreadable font.
     
  3. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0

    hi everyone

    I've looked everywhere for that request and I've not found it

    and i wish if you could help me in that.

    I need the code of the star shape and it should be drown by (*)

    also with (The use of loop for ) only

    the last thing i want the gorithem of the code (the star)

    I'm Thankful for your cooperation

     
  4. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    I'm using the defult font

    so what's the problem???

    Is it clear now sir??
     
  5. ajit_pimg

    ajit_pimg New Member

    Joined:
    Mar 31, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.richinfotech.blogspot.com
    :nonod:
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Yes and have you done something to draw a part of the star you want it to be created.
     
  7. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    i have the shape but i was trying to make it

    till now i couldn't do it


    "the problem is i couldn't post the image.""Too many live links/images found in your post content. Please edit your post or contact the administrator""

    ??????????????????????
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Your account is still limited and you cannot link to other sites.
     
  9. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    What shall i do to fix this problem????
     
  10. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    *
    **
    ***
    ****
    *******************
    *****************
    ***************
    *************
    ***********
    ***************
    *****************
    *******************
    ****
    ***
    **
    *​
     
  11. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    finally I could put the shape that I wanted...

    it should be like this with using (for)only

    Thanks for your cooperation
     
  12. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Divide into small parts and draw it.

    First
    *
    **
    ***
    ****
    and then take the next step.
     
  13. ice woman

    ice woman New Member

    Joined:
    May 28, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    you mean like this
    *
    **
    ***
    ****

    then

    *******************
    *****************
    ***************
    ***********
    then

    ******************
    ****************
    *************
    **********

    then

    ****
    ***
    **
    *
    ok thanks alot sir

    i guess i will try to make​
     
  14. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    You probably won't be able to do it exactly as you've drawn it but this depends how you're doing the output. Is it straight to console or are you writing the output to a file that can be processed to display it centre-justified as in the illustration? The problem can be illustrated easily: which of the following represents how you want the first four lines drawing?
    Code:
       *
      * *
     * * *
    * * * *
    
       *
       **
      ***
      ****
    
       *
      ***
     *****
    *******
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice