Half Pyramid Pattern Printing in C++