#includeIn this example, a 3x3 matrix is initialized with integer values. The inner for loop iterates through each row, while the outer loop iterates through each column of the matrix. The array indexing is used to access and print the values in each column of the matrix. Package library: Standard C++ library.using namespace std; int main() { //initialize 3x3 matrix int matrix[3][3] = {{1,2,3}, {4,5,6}, {7,8,9}}; //print each column of the matrix for(int j=0; j<3; j++){ for(int i=0; i<3; i++){ cout << matrix[i][j] << " "; } cout << endl; } return 0; }