C++ Programming Code Examples C++ > Pyramid Patterns Code Examples Inverted full pyramid using *(Asterisk) Inverted full pyramid using *(Asterisk) #include <iostream> using namespace std; int main() { int rows; cout << "Enter number of rows: "; cin >> rows; for(int x = rows; x >= 1; --x) { for(int space = 0; space < rows-x; ++space) cout << " "; for(int j = x; j <= 2*x-1; ++j) cout << "* "; for(int j = 0; j < x-1; ++j) cout << "* "; cout << endl; } return 0; }