Write a c program to find the minimum element in each row of the matrix
Answers
Answered by
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]
#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
Math,
8 months ago
Math,
8 months ago
Computer Science,
1 year ago
Physics,
1 year ago
Environmental Sciences,
1 year ago