0

I need to find the smallest number in my 10x8 array grid fileld with random numbers

I know im doing it wrong but I do not know what to do.

Please Help!

Heres my Code:

```
//ArrayGrid
#include <iostream>
using namespace std;
int main()
{
int total,average,smallest;
int row=0;
int col=0;
int ArrayGrid [10][8];
srand(time(NULL));
//PrintArray
for(row=1; row<10; row++)
{
for(col=1; col<8; col++)
{
{
ArrayGrid[row][col]= rand() % 70+1;
}
cout << ArrayGrid[row][col] << "\t";
}
cout << ""<<endl<<endl;
}
//findSmallest
for ( row=0;row<0;row++ )
for ( col=0;col<0;col++ )
{
if ( smallest >= 1)
cout << "Smallest Number Is: "<< smallest <<endl<<endl;
}
{
if ( smallest >= 1)
cout << "Smallest Number Is: "<< smallest << endl << endl;
}
//findAverage
for( row = 1;row <10;row++)
for( col =1;col <8;col++)
{
total += ArrayGrid[row][col];
}
average = total / 80;
//Display Average
cout << "The Average Of The Random Numbers Is: ";
cout << average << endl<<endl;
system ("pause");
return 0;
}
```