Back to Patterns
Alphabet W Pattern
Pattern Result
* ** ** ** * ** * * *** *** *
Code Implementation
Explanation
The Alphabet W Pattern creates a shape that resembles the letter W using asterisks. The pattern consists of three parts: the top part with vertical lines only, the middle row with stars at the edges and middle, and the bottom part with diagonal lines. The top part has stars only at the first and last positions to form the vertical lines of the 'W'. The middle row has stars at the first, middle, and last positions. The bottom part creates the characteristic 'W' shape with stars placed to form diagonal lines that meet in the middle. This creates the distinctive shape of the letter W with its up-down-up-down pattern.