64 736
Assignments Done
99,3%
Successfully Done
In September 2018

Answer to Question #11750 in C++ for Irwin

Question #11750
You are given a 6x8 (6 rows, 8 columns) array of integers, x , already initialized and three integer variables: max , i and j . Write the necessary code so that max will have the largest value in the array x .
Expert's answer
max=x[0][0];
for (i=0; i<6; i++){
for (j=0; j<8;
j++){
if (x[i][j]>max){

max=x[i][j];
}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions