Write a C++ Program : 1. Accepts 9 values to a 3×3 i…
Write a C++ Program : 1. Accepts 9 values to a 3×3 integer array from the user as input. 2. Define two functions to calculate and print: a.Minimum element of each row . b.Minimum element of each column. 3. Displays all these values row-wise and column-wise. SAMPLE OUTPUT : Enter 9 integers for 3×3 array: 1 2 3 5 4 3 8 3 2 Minimum Value in Row 1 : 1 Minimum Value in Row 2 : 3 Minimum Value in Row 3: 2 Minimum Value in Column 1 : 1 Minimum Value in Column 2 : 2 Minimum Value in Column 3 : 2
Read DetailsWrite a program that: 1.Accept 9 numbers to a 3×3 integ…
Write a program that: 1.Accept 9 numbers to a 3×3 integer array from the user as input. 2. Define a function to calculate and print the average of each row. 3.Defines another function to calculate and print the average of each column. 4. Displays the averages row-wise and column-wise. SAMPLE OUTPUT : Enter 9 integers for 3×3 array : 1 2 3 1 3 2 5 1 2 Average of Row 1: 2 Average of Row 2: 2 Average of Row 3: 2.6 Average of Column 1 : 2.3 Average of Column 2: 2 Average of Column 3: 2.3
Read Details