Computer Science, asked by vidhupriya, 10 months ago

Raju is the maths teacher in high secondary school and provided mark sheet to students.In this class room, students are arranged in the form of rows and columns. Raju needs to find the highest mark in each rows. Help him to find out. Raju is the maths teacher in high secondary school and provided mark sheet to students.In this class room, students are arranged in the form of rows and columns. Raju needs to find the highest mark in each rows. Help him to find out.

Answers

Answered by jassd6712
0

Answer:

hi.........................

Answered by nidaeamann
0

Answer:

Explanation:

The program witten to find the maximum number in each row of matrix is in C language

Code

include<stdio.h>

#define m 20

void main void

{

int edges;

int vertices;

int faces;

}

int class[m][n],

int x,z=0,r,maximum[10],col;

printf ("The number of rows class has?");

scanf ("%d",&r);

printf ("The number of columns class has?");

scanf ("%d",&col);

printf ("The number of columns to check ");

for (x=0;x<r;x++)

for (z=0;z<col;z++)

scanf ("%d",&a[x][z]);

for (x=0;x<r;x++)

{

maximum[x]=class[x][z];

for (z=0;z<col;z++)

if (class[x][z]>maximum[x])

maximum[x]=class[x][z];

}

for(x=0;x<r;x++)

printf ("Highest marks %d row is:%d",x,maximum[x]);

}

Find related programs on Matrices in C langage

https://brainly.in/question/16592592

Similar questions