rendered paste body if(AllPositive(table, rows, cols)==false){
cout << "\n\nSome Elements in the orginal table are negative";
cout << "\n\nStart subarray processing? (Y/N): ";
cin >> yorn;
while((yorn == 'Y') || (yorn == 'y')){ // If they answer yes, it starts
while(AllPositive(table, rows, cols)==false){
SubArray(table, rows, cols);
Print(table, rows, cols);
if(AllPositive(table, rows, cols)==false)
cout << "\n\n Some Elements in the orginal table are negative\n";
else
cout << "\n\n All elements in this subarray are positive.";
cout << "\n\nContinue subarray proccessing? (Y/N) ";
cin >> yorn;
if((yorn !='y') && (yorn !='Y'))
return 0;
}
}
}