top of page

Problem 4

Row Maximum of a Matrix (Id-1246)

 

Question:         

        Given an nXn matrix with entries as numbers, print the maximum value in each row of the matrix.

Input Format:

Value of 'n'

Element in first row first column

Element in first row second column

..

Element in the first row nth column

Element in second row first column

Element in second row second column

..

Element in the second row nth column

...

Element in nth row first column

Element in nth row second column

..

Element in nth row nth column

Output Format:

Maximum value in the first row

Maximum value in the second row

...

Maimum value in the nth row

OUTPUT
INPUT
PROCESSING

I'm a paragraph. Click here to add your own text and edit me. It's easy.

I'm a paragraph. Click here to add your own text and edit me. It's easy.

I'm a paragraph. Click here to add your own text and edit me. It's easy.

C  PROGRAM

I'm a paragraph. Click here to add your own text and edit me. It's easy.

bottom of page