Nuacht
The pyramid pattern is constructed by using nested loops to print spaces and stars. As you go down the pyramid, the number of stars increases, while the spaces decrease to center-align the stars.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana