how make this all pyramid in c++ 4.5

Discussion in 'C++' started by shah18, Oct 3, 2010.

  1. shah18

    shah18 New Member

    Joined:
    Oct 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    how make this all pyramid in c++ 4.5


     

    Attached Files:

  2. shah18

    shah18 New Member

    Joined:
    Oct 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    but decleare one loop
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    These are all very easy assignments. Where exactly are you stuck? Or are you just being lazy?
     
    shabbir likes this.
  4. shah18

    shah18 New Member

    Joined:
    Oct 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    first two i have done but 3rd 4th and 5th one i cant make bcoz i m new student in c++ so plz what can i do ?? use one loop and give reslut i cant do with one loop plz tel me how can i do???????????
     
  5. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    You can do the 3rd by adding together the code for the 1st and 2nd, extend the loop and put an if statement in. Or loop from -X to +X and take the absolute value.

    The 4th should follow easily from the 2nd, and the 5th from the 1st: whatever you do to display a line, just do it twice.

    Post your code for 1st and 2nd if you're still stuck.
     
    shabbir likes this.
  6. shah18

    shah18 New Member

    Joined:
    Oct 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    xpiotos plz give code of some assignment i will be post 1st n 2nd assignment
     

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