Computers and Technology

Please help me with this C language exercise:

It is considered a rectangular matrix, with m rows and n columns. Determine and display the minimum element of the matrix and its position, given by the row number and column number. Form a string containing all the elements of the matrix that are divisible by the minimum element. Display the obtained string. (If the minimum item is zero, the program stops after determining and displaying it).

Thank you <3

I've made it this far but I don't know what to do from here:

#include
#include

int main()
{int mat[100][100];
int n, m,i, j,minim;
printf("enter how many row and colmn you want:\n \n");
scanf("%d",&n);
scanf("%d",&m);
printf("enter the matrix:");

for(i=0;i for(j=0;j scanf("%d",&mat[i][j]);
}

printf("\n");
}

for(i=0;i for(j=0;j printf("%d \t",mat[i][j]);}

printf("\n");}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, SundaeSunday
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_balance should be removed since header files should not contain constants. c)the definition of cashregister should be removed since header files should not contain class definitions. d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 07:10, anika420
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
image
Computers and Technology, 24.06.2019 09:50, potatocow
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
Do you know the correct answer?
Please help me with this C language exercise:

It is considered a rectangular matrix, wit...

Questions in other subjects:

Konu
Mathematics, 19.07.2019 10:50
Konu
Mathematics, 19.07.2019 10:50