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.