Menu
Coddy logo textTech

X Pattern

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

challenge icon

Challenge

Medium

Write a program that prints a X Pattern of stars as shown below.  The pattern consists of 7 rows and 7 columns.

Expected Output Pattern:

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

Try it yourself

#include <stdio.h>

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

All lessons in Star Pattern Bootcamp