The document contains code snippets demonstrating various operations on 2D arrays in C++, including declaration, initialization, user input, finding the smallest value, and summing elements. It also includes Java classes for summing numbers, matrix multiplication, sorting strings, and counting words in a paragraph. Each section illustrates specific programming concepts and techniques in handling arrays and user input.
The document contains code snippets demonstrating various operations on 2D arrays in C++, including declaration, initialization, user input, finding the smallest value, and summing elements. It also includes Java classes for summing numbers, matrix multiplication, sorting strings, and counting words in a paragraph. Each section illustrates specific programming concepts and techniques in handling arrays and user input.
Write a program to declare a Square Matrixx, a [][] order m*n where m is the number of rows and n is the number of columns such that m and n both must be greater than 2 and less than 10 . Accept the value of ‘m’ and ‘n’ as user input and perform the following task. Display the original Matrixx. Sort each column of the matrix in ascending order using selection sort technique. Play the changed Matrixx after sorting each row.