Pyramid Help

Newbie Member
9Apr2011,20:22   #1
Omer Aslam's Avatar
*
***
*****
*******

Hello Experts I need this Output Using Loops.Help me
Pro contributor
9Apr2011,23:47   #2
virxen's Avatar
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.
Newbie Member
10Apr2011,13:40   #3
Omer Aslam's Avatar
give me right logical code.not printf
Pro contributor
10Apr2011,17:47   #4
virxen's Avatar
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.
Newbie Member
10Apr2011,18:04   #5
Omer Aslam's Avatar
i done it.