1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Pyramid Help

Discussion in 'C' started by Omer Aslam, Apr 9, 2011.

  1. Omer Aslam

    Omer Aslam New Member

    Joined:
    Apr 9, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    *
    ***
    *****
    *******​

    Hello Experts I need this Output Using Loops.Help me
     
  2. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    use this or........

    Code:
    #include <stdio.h>
    
    int main(){
        int i;
        for(i=0;i<1;i++){
            printf("   *\n");
            printf("  ***\n");
            printf(" *****\n");
            printf("*******\n");
        }  
        getchar();
        return 0;
    }
    
    ...start coding.
     
  3. Omer Aslam

    Omer Aslam New Member

    Joined:
    Apr 9, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    give me right logical code.not printf
     
  4. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    start coding ,post your code here and i will help you
    but i am not going to solve it for you.
     
  5. Omer Aslam

    Omer Aslam New Member

    Joined:
    Apr 9, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i done it.
     

Share This Page