Menu
Coddy logo textTech

Column of stars

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

challenge icon

Challenge

Easy

Your task is to write a program that prints a single column of stars as shown below. The pattern consists of 6 rows and 1 column.

Output Pattern:

* 
* 
* 
* 
* 
* 

Try it yourself

#include <stdio.h>

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

All lessons in Star Pattern Bootcamp