#include <iostream>
int main()
{
const int TreeSize = 7; //since it it used more than once, it should be simple to change
for(int x = 0; x < TreeSize; ++x)
{
for(int y = TreeSize; y > x; --y)
{
std::cout << " ";
}
for(int y = 0; y < x; ++y)
{
std::cout << "*";
}
std::cout << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBjb25zdCBpbnQgVHJlZVNpemUgPSA3OyAvL3NpbmNlIGl0IGl0IHVzZWQgbW9yZSB0aGFuIG9uY2UsIGl0IHNob3VsZCBiZSBzaW1wbGUgdG8gY2hhbmdlCiAgICBmb3IoaW50IHggPSAwOyB4IDwgVHJlZVNpemU7ICsreCkKICAgIHsKICAgICAgICBmb3IoaW50IHkgPSBUcmVlU2l6ZTsgeSA+IHg7IC0teSkKICAgICAgICB7CiAgICAgICAgICAgIHN0ZDo6Y291dCA8PCAiICI7CiAgICAgICAgfQogICAgICAgIGZvcihpbnQgeSA9IDA7IHkgPCB4OyArK3kpCiAgICAgICAgewogICAgICAgICAgICBzdGQ6OmNvdXQgPDwgIioiOwogICAgICAgIH0KICAgICAgICBzdGQ6OmNvdXQgPDwgc3RkOjplbmRsOwogICAgfQp9Cg==