CrackAlgo

print reverse hollow pyramid

print reverse hollow pyramid :-

Pattern printing in c | print reverse hollow pyramid . Reverse hollow pyramid is . :-

***********
 *       *
  *     *
   *   *
    * *
     *

 

 

So the code for reverse hollow pyramid is given below .

Pattern printing in c print reverse hollow pyramid.

Code:-

#include<stdio.h>
int main()
{
    int i,j,k;
    for(i=6;i>=1;i--)
    {
        for(j=1;j<=(6-i);j++)
        {
            printf(" ");
        }
        for(k=1;k<=(2*i-1);k++)
        {
            if(i==6||k==1||k==(2*i-1))
            {
                printf("*");
            }
            else
                printf(" ");
        }
        printf("\n");
    }
    return 0;
}

 

output:—-

***********
 *       *
  *     *
   *   *
    * *
     *

 

 

CrackAlgo
Crackalgo



keyword:-

,Keyword, reverse pyramid number pattern in c ,inverted number pattern in c ,inverted hollow pyramid star pattern in c, inverted hollow full pyramid in python, hollow inverted right triangle star pattern in c, inverted hollow pyramid star pattern in java, write a code to generate a hollow full pyramid pattern using stars, inverted hollow pyramid in java,,reverse pyramid number pattern in c, inverted number pattern in c, inverted hollow full pyramid in python, inverted hollow pyramid in java, inverted hollow pyramid star pattern in c++, hollow inverted right triangle star pattern in c,

Also check this:-

codechef problems:-

 

 

Wipro :-

 

 

Infytq :-

 

 

Key Points;-

Hackerrank:-

C-tutorial:-

 

See more:-

 

Leave a Reply

Your email address will not be published.