// File ForLoopErrorCheckNValues.CPP // N Values; Error Check; For loop // Find the Extremes in a List of integers // Method of Iteration: for loop // Error Check: If ValuesToProcess is non-positive, exit #include using namespace std; int main() {int Count,Value,Min,Max,ValuesToProcess; cout << "How Many Values to Process? >"; cin >> ValuesToProcess; if (ValuesToProcess>0) { cout << "Enter the 1st Integer>"; cin >> Value; // Only Correct Method of Initializing Min and Max: // Set equal to initial Value Max=Min=Value; // The three elements of a counted loop are in one statement for (Count=2;Count<=ValuesToProcess;Count++) { cout << "Enter the Next Integer>"; cin >> Value; if (Value>Max) Max=Value; else if (Value