excercise is next .You have to input 2-massive A.then you have to create new 2-massive B according divideng diagonal -elements to other.and output massive B.
This is not C code, it will not compile - it is pseudo-code to give you a hand thinking about how you might program such a problem. We can't write programs for you. We're here to help you learn.
Get dimension of matrix rows, cols;
for i = 0; i < rows; i++;
for j = 0; j < cols; j++;
input data to float array[j];
if (j == i) denominator = array[j];
for k = 0; k < cols; k++
array[k] = array[k] / denominator;
void solve(int a*,float b*){
int x[3];
for (int i=0;i<3;i++){
int x[0] = a/100;
int x[1] = (a -x[0]*100)/10;
int x[2] = a%10;
for (int j=0;j<3;j++) b[j] = (float)x[j]/x;
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.