output inverted triangle in c++