Pyramid Help

Omer Aslam's Avatar, Join Date: Apr 2011
Newbie Member
*
***
*****
*******

Hello Experts I need this Output Using Loops.Help me
virxen's Avatar, Join Date: Nov 2009
Pro contributor
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.
Omer Aslam's Avatar, Join Date: Apr 2011
Newbie Member
give me right logical code.not printf
virxen's Avatar, Join Date: Nov 2009
Pro contributor
Quote:
Originally Posted by Omer Aslam View Post
give me right logical code.not printf
start coding ,post your code here and i will help you
but i am not going to solve it for you.
Omer Aslam's Avatar, Join Date: Apr 2011
Newbie Member
i done it.