Question: #include using namespace std; int main ( ) { const int NUM _ VALS = 4 ; int userValues [ NUM _ VALS ] ;

#include
using namespace std;
int main(){
const int NUM_VALS =4;
int userValues[NUM_VALS];
int i;
int matchValue;
int numMatches =-99; // Assign numMatches with 0 before your for loop
cin >> matchValue;
for (i =0; i < NUM_VALS; ++i){
cin >> userValues[i];
}
/* Your solution goes here */
cout << "matchValue: "<< matchValue <<", numMatches: "<< numMatches << endl;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!