Back to Patterns
Alphabet Y Pattern
Pattern Result
* ** ** *****
Code Implementation
Explanation
The Alphabet Y Pattern creates a shape that resembles the letter Y using asterisks. The pattern consists of three parts: the top part with diagonal lines, the middle part where the diagonals meet, and the bottom part with a vertical line. The top part creates the upper fork of the 'Y' with stars placed to form diagonal lines that converge toward the center. The middle part has a single star in the center where the diagonals meet. The bottom part has a single star in the center of each row to form the vertical stem of the 'Y'. This creates the distinctive shape of the letter Y with its forked top and straight bottom.