#include <stdio.h>
int main() {
for (int x = 9; x > 0; x--) {
for(int y
= 9 - x
; y
> 0; y
--) printf(" "); for (int y
= 1; y
<= x
* 2 - 1; y
++) printf("*"); }
}
//https://pt.stackoverflow.com/q/136861/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWZvciAoaW50IHggPSA5OyB4ID4gMDsgeC0tKSB7CgkJZm9yKGludCB5ID0gOSAtIHg7IHkgPiAwOyB5LS0pIHByaW50ZigiICIpOwoJCWZvciAoaW50IHkgPSAxOyB5IDw9IHggKiAyIC0gMTsgeSsrKSBwcmludGYoIioiKTsKICAgIAlwcmludGYoIlxuIik7Cgl9Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzEzNjg2MS8xMDE=