Question: Jump to level 1 Four integers are read from input as variables id 1 to id 4 . Use push _ back ( ) to

Jump to level 1
Four integers are read from input as variables id1 to id4. Use push_back() to add the variables id1 to id4 to vector idRoster with the variables id 1 to id 4 in the opposite order the input integers are read.
Ex: If the input is 3711183, then the output is:
\(\begin{array}{llll}3 & 18 & 11 & 37\end{array}\)
```
13
-
cin >> id1;
cin >> id2;
cin >> id3;
cin >> id4;
/* Your code goes here */
for (i =0; i idRoster.size(); ++i){
cout idRoster.at(i)"";
}
cout endl;
codetest(); // For code testing only
return 0;
}
```
Jump to level 1 Four integers are read from input

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 Programming Questions!