Friday, December 30

//c program for piramid//



#include
int main()
{
    int counter,x,y,z;
        counter=0;
    for(x=15;x>=1;x--)
    {
        for(y=1;y<=x;y++)
        {
            printf(" ");
        }
                counter=counter+1;
            for(z=1;z<=counter;z++)
                {printf("* ");}
                printf(" \n");}
return 0;
}

No comments:

Post a Comment