1234567891011121314151617
int main() { const int row = 10; const int col = 5; int arr[row][col]; srand(((unsigned)time(0))); cout << "Original" << endl; for (int i = 0; i<10; i++) { for (int j = 0; j<5; j++) { arr[i][j] = 1 + rand() % 99; cout << setw(4) << arr[i][j] << setw(5) << " | "; } cout << endl; }