# C++: Programming Problem - Print Rectangle

(5 points)Print a rectangle. Read a height and width and print a rectangle with that height and width. This example output has height 3 and width 7.

              *******
              *******
              *******

Sample solution.

    int width, height;

    while (cin >> width >> height) {
        for (int row=0; row<height; row++) {
            for (int col=0; col<width; col++) {
                cout << "*";
            }
            cout << endl;  // end the line of stars.
        }
    }