Menu
Coddy logo textTech

Hollow Inverted Full Pyramid

Lesson 26 of 30 in Coddy's Star Pattern Bootcamp course.

challenge icon

Challenge

Beginner

Write a program that prints a Hollow Inverted Full Pyramid pattern of stars as shown below.  The pattern consists of 5 rows and 9 columns.

Expected Output Pattern:

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

Try it yourself

#include <stdio.h>

int main() {
    // Write code here
    return 0;
};

All lessons in Star Pattern Bootcamp