logoStarPatterns
Back to Patterns

Alphabet T Pattern

Pattern Result

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

Code Implementation

Explanation

The Alphabet T Pattern creates a shape that resembles the letter T using asterisks. The pattern consists of two parts: the top horizontal line and the vertical part. The top horizontal line is created by filling the entire row with stars. The vertical part is created by placing a star in the middle of each row, with spaces on both sides. This creates the distinctive shape of the letter T with a horizontal line at the top and a vertical line extending down from the middle.