Modify the following 10 x 10 (10col, 10 rows) array by writing a code to find th
ID: 3635262 • Letter: M
Question
Modify the following 10 x 10 (10col, 10 rows) array by writing a code to find the maximum and minumum vaule.
*Use 'For Loop' statements for the Max and Min code.
Display output when complete.
#include <iostream>
#include <array>
using namespace std;
int main()
{
int array[10][10];
for(int i=0; i<10; i++)
for(int j=0; j<10; j++)
array[i][j] = rand ( )% 100;
for(int i=0; i<10; i++)
{
for(int j=0; j<10; j++)
{
cout << array[i][j] << " " << " ";
}
cout << endl;
}
return 0;
}
Explanation / Answer
#include #include using namespace std; int main() { int array[10][10]; int max,min; for(int i=0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.