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

11y 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
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.


How was the six's thermometer invented?

A combination maximum thermometer and minimum thermometer; the tube is shaped in the form of a U with a bulb at either end; one bulb is filled with creosote which expands or contracts with temperature variation, forcing before it a short column of mercury having iron indexes at either end; the indexes remain at the extreme positions reached by the mercury column, thus indicating the maximum and minimum temperatures; the indexes can be reset with the aid of a magnet.


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 element is not a transition element?

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


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.


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

In the same column.


Element in the same column vertical are know as?

Groups or family's!


Which element ha properties most similar to sulfur?

Selenium, the element immediately below sulfur in the same column of a wide form periodic table. (The element immediately above sulfur in the same column, oxygen, is the lightest element in the column, and these lightest elements in a column of main group elements often have chemical properties somewhat different from all the other elements in the column. Sulfur, for example, has a much lower electronegativity than oxygen, while the difference between electronegativities of selenium and sulfur is much less.)


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 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.