Define a function InspectVals() with no parameters that reads integers from input until integer -1 is read. The function
Posted: Tue Jul 05, 2022 10:26 am
Define a function InspectVals() with no parameters that reads integers from input until integer -1 is read. The function returns true if all integers read before -1 are even, otherwise, returns false. Ex: If the input is 50 80 90 -1, then the output is: All match Note: Even numbers are divisible by 2. 1 #include <iostream> 2 using namespace std; 4* Your code goes here */ 6 int main() { GEGEERESOVOSAWNE 10 11 12 14 bool allEven; } 13 else { allEven = InspectVals(); if (allEven) { 16 15 } cout << "All match" << endl; cout << "Not all match" << endl; 17 return 0;