Question: Write a program which will: a . Accept two numbers from the user m and n b . Define an array with the dimensions a
Write a program which will:
a Accept two numbers from the user m and n
b Define an array with the dimensions anm and fill it with random numbers in the range
of to inclusive.
c Determine the followings:
Sum of the element in a row that the user will specify. Print the result.
Sum of the element in a column that user will specify. Print the result.
Sum of the elements in the right diagonal. Print the result.
Sum of the elements in the left diagonal. Print the result.
The element with the minimum value and its location in the array. Print the result.
The element with the maximum value and its location in the array. Print the result.
The element with the minimum value in a row that user will specify. Print the result.
The element with the maximum value in a row that user will specify. Print the result.
The element with the minimum value in a column that user will specify. Print the
result.
The element with the maximum value in a column that user will specify. Print the
result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
