logoStarPatterns
Back to Patterns

Alphabet U Pattern

Pattern Result

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

Code Implementation

Explanation

The Alphabet U Pattern creates a shape that resembles the letter U using asterisks. The pattern consists of two parts: the vertical part and the bottom curved part. The vertical part is created by placing stars at the first and last positions, with spaces in between. The bottom curved part is created by placing spaces at the first and last positions, with stars in between. This creates the distinctive shape of the letter U with two vertical lines connected by a curved bottom.