Programming Assesment
Programming Assesment
You can use the variables called min, max to store the minimum and maximum numbers for each
row and column. Display the result in the following format.
34 56 20 33 18 Max
56
89 35 67 23 54
89
67 42 56 76 90
90
56 78 14 79 11
79
Min 34 35 14 23 11
Q2. Declare a 2-Dimensional array of integer numbers. The array consists of 5 rows and 5
columns. Write a C++ program to find out the sum of all elements of 2D-array above
and below the diagonal shown in the figure:
34 56 20 33 18
89 35 67 23 54
67 42 56 76 90
56 78 14 79 11
13 67 84 99 73
Q3. Write a program in C++ to sort a two dimensional array i.e.3x3 in an ascending
order
Q4. Write a program in C++ to multiply a two dimensional array i.e.3x3 and store
the result in the other array and finally display the resultant matrix.
Q5. Write a program in C++ to display the prime numbers in 3x3 array.
Q6. write a program in C++ to delete a specific column upon user choice and display
rest of the column in the matrix.