Back to Patterns
Mirrored Rhombus Pattern
Pattern Result
*************************
Code Implementation
Explanation
The Mirrored Rhombus Pattern creates a rhombus shape that is shifted to the right. Each row contains the same number of stars, but each subsequent row is shifted to the right by adding one more space at the beginning. This creates a rhombus that appears to be a mirror image of the regular rhombus pattern. The outer loop iterates through each row, and the inner loops handle the spaces before the rhombus, the stars that form the rhombus, and the spaces after the rhombus.