#include <iostream>// function prototype.void print_grid();int main(){print_grid();}void print_grid(){int HEIGHT = 10;int WIDTH = 50; // Print X * WIDTH at the top of the box. for(int i = 0; i <= WIDTH; i++) { std::cout << "X"; } // Print "Y".* HEIGHT at the left side of the box. for(int i = 0; i <= HEIGHT; i++) { std::cout << "\nY"; // Print the spaces in between the box. for(int i = 1; i <= WIDTH; i++) { std::cout << " "; if(WIDTH-i == 1) std::cout << "Y"; } } std::cout << "\n"; // Print "X" * WIDTH at the bottom of the box. for(int i = 0; i <= WIDTH; i++) { std::cout << "X"; }}