#include <stdio.h>
int main() {
int n, i, j;
// Input the number of rows for the pyramid
printf("Enter the number of rows: ");
// Outer loop for number of rows
for (i = 1; i <= n; i++) {
// Inner loop for spaces
for (j = 1; j <= n - i; j++) {
}
// Inner loop for stars
for (j = 1; j <= i; j++) {
}
// Move to the next line after each row
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBuLCBpLCBqOwoKICAgIC8vIElucHV0IHRoZSBudW1iZXIgb2Ygcm93cyBmb3IgdGhlIHB5cmFtaWQKICAgIHByaW50ZigiRW50ZXIgdGhlIG51bWJlciBvZiByb3dzOiAiKTsKICAgIHNjYW5mKCIlZCIsICZuKTsKCiAgICAvLyBPdXRlciBsb29wIGZvciBudW1iZXIgb2Ygcm93cwogICAgZm9yIChpID0gMTsgaSA8PSBuOyBpKyspIHsKICAgICAgICAvLyBJbm5lciBsb29wIGZvciBzcGFjZXMKICAgICAgICBmb3IgKGogPSAxOyBqIDw9IG4gLSBpOyBqKyspIHsKICAgICAgICAgICAgcHJpbnRmKCIgIik7ICAvLyBQcmludCBzcGFjZQogICAgICAgIH0KICAgICAgICAvLyBJbm5lciBsb29wIGZvciBzdGFycwogICAgICAgIGZvciAoaiA9IDE7IGogPD0gaTsgaisrKSB7CiAgICAgICAgICAgIHByaW50ZigiKiIpOyAgLy8gUHJpbnQgc3RhcgogICAgICAgIH0KICAgICAgICAvLyBNb3ZlIHRvIHRoZSBuZXh0IGxpbmUgYWZ0ZXIgZWFjaCByb3cKICAgICAgICBwcmludGYoIlxuIik7CiAgICB9CgogICAgcmV0dXJuIDA7Cn0KCg==