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

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

Share This Page