Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Pyramid Help (http://www.go4expert.com/forums/pyramid-help-t25487/)

Omer Aslam 9Apr2011 20:22

Pyramid Help
 
*
***
*****
*******

Hello Experts I need this Output Using Loops.Help me

virxen 9Apr2011 23:47

Re: Pyramid Help
 
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 10Apr2011 13:40

Re: Pyramid Help
 
give me right logical code.not printf

virxen 10Apr2011 17:47

Re: Pyramid Help
 
Quote:

Originally Posted by Omer Aslam (Post 81760)
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 10Apr2011 18:04

Re: Pyramid Help
 
i done it.


All times are GMT +5.5. The time now is 14:39.