Computer Science, asked by omagrawal2044, 1 year ago

Write a c program to find the minimum element in each row of the matrix

Answers

Answered by surajsingh16
6
#include<stdio.h>
#include<conio.h>

void main()
{
int m, n, c, d, matrix[10][10], maximum[10];

printf("Enter the number of rows and columns of matrix\n");
scanf("%d%d",&m,&n);
printf("Enter the elements of matrix\n");

for( c = 0 ; c < m ; c++ )
{
for( d = 0 ; d < n ; d++ )
{
scanf("%d",&matrix[c][d]);
}
}

maximum[0] = matrix[0][0];

for( c = 0 ; c < m ; c++ )
{
for( d = 0 ; d < n ; d++ )
{
if ( matrix[c][d]
Similar questions