answersLogoWhite

0


Best Answer

#include <stdio.h>

main()

{

int m, n, c, d, A[10][10],temp=0;

printf("\nEnter the number of rows and columns for matrix A:\n");

scanf("%d%d", &m, &n);

printf("\nEnter the elements of matrix A:\n");

for ( c = 0 ; c < m ; c++ )

for ( d = 0 ; d < n ; d++ )

scanf("%d", &A[c][d]);

printf("\nMatrix entered is:\n");

for ( c = 0 ; c < m ; c++ )

{

for ( d = 0 ; d < n ; d++ )

printf("%d\t", A[c][d]);

printf("\n");

}

printf("\n\nMaximum element of each row is:\n");

for(c=0;c<m;c++)

{

for(d=0;d<n;d++)

{

if(A[c][d]>temp)

temp=A[c][d];

}

printf("\n\t\tRow %d: %d",c+1,temp); temp=0;

}

temp=A[0][0];

printf("\n\nMinimum element of each coloumn is:\n");

for(c=0;c<n;c++)

{

for(d=0;d<m;d++)

{

if(A[d][c]<temp)

temp=A[d][c];

}

printf("\n\t\tColoumn %d: %d",c+1,temp); temp=A[d][c] ;

}

return 0;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you write a c program to find maximum element in row and minimum element in column of a matrix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is argon element period number?

Period, 3 (row)Group, 18 (column)


What does the roman numeral at the top of a column on in the outer shell represent?

It represents the family the element is in.


How to write incidence matrix?

An incidence matrix is a mathematical matrix showing a relationship between two different types of objects. The first class can be written as X and the second as Y with one row for each element of X and one column for each element of Y. The entry in row x and column 1 should be 1 if x and y are related to one another. The entry in row x and column 1 should be 0 if they are not related to each other,


What digit is in the hundredths column of 7.848?

7.848 '7' is in the UNITS column Decimal point '8' is in the TENTHS column '4' is in the HUNDREDTHS column '8' is in the THOUSANDTHS Column .


What is the column height in inches of the sixth yoke if a column is 10 feet high with a cross sectional dimension of 30 inches?

Step 1. Determine the total column height (in inches) as follows:Total column height (in inches) = column height (in feet) x 1213&prime; x 12&Prime; = 156&Prime;Step 2. Enter the 24-inch cross-sectional dimension column in Table 1 at 13 feet. Step 3. &middot; 3a. Determine the maximum (total) yoke spacing as follows:Maximum (total) yoke spacing = sum of all but the last yoke spacingfound in the columnYoke: 2d 3d 4th 5th 6th 7th 8th 9thYoke spacing:11&Prime; + 12&Prime; + 13&Prime; + 14&Prime; + 16&Prime; + 22&Prime; + 23&Prime; + 23&Prime; = 134&Prime;

Related questions

What is a saddle point in game theory?

when entity is minimum of a row &amp; respective column is maximum i.e. pay off matrix


In Excel a button that inserts Excel functions to sum average or count all the values in a column or row or display the minimum or maximum value in a column or row is called the?

The Autosum button can do all of those things.


What is the minimum and maximum allowable percentage of reinforcement steel in concrete?

The amount of steel required in concrete as reinforcement is measured using a formula that calculates the amount of pressure that will be put on the concrete. There are different formulas to identify the minimum and the maximum amount of needed steel, depending on if you are making a beam, slab, or column.


What does the name of the first element in the column respresents?

The name of the first element in a column typically represents the category or type of data being stored in that column. It sets the label or identifier for the information that follows in that column.


What do the same elements in a column have in common?

amount of electrons in their outermost shell that their shell can hold in relative of one to maximum amount their outer shell can handle in a stable element.


What column and row is the element Re found in?

The element rhenium (Re), atomic number 75, is in column 7 and period 6 on the periodic table.


What element is not a transition element?

any in column 1a, 2a, 3a-8a


Where do you look on the periodic table to find an element with properties similar to that of another element?

In the same column.


How was the six's thermometer invented?

The Six's thermometer was invented by James Six in the early 19th century. It is a type of maximum and minimum thermometer that records the highest and lowest temperatures reached over a period of time. Six's design included using mercury to expand and contract within separate tubes to indicate temperature extremes.


What is the maximum weight this item can bear?

This column is designed to withstand the maximum load capacity of all the Peerless mounts it is compatible with.


Which element from Mendeleev's seventh column is now considered out of place?

The element polonium (Po) is now considered out of place in Mendeleev's seventh column; it is a metalloid and is currently placed in the 6th column of the periodic table with the other metalloids.


Which metalloid is in the fourth period and same group as carbon?

In the Periodic Table, a group is a column of elements and a period is a row. The element in the 14th column and fourth row is germanium.