Question: #include #include using namespace std; int main ( ) { int student 1 ; int student 2 ; int student 3 ; unsigned int i;
#include
#include
using namespace std;
int main
int student;
int student;
int student;
unsigned int i;
cin student;
cin student;
cin student;
Your code goes here
for i ; i studentListings.size; i
cout studentListings.ati;
cout endl;
return ;
Three integers are read from input as variables student to student Declare a vector of integers named studentListings and initialize the elements at the even indices with the value and the odd indices with the variables student to student in the order the input integers are read.
Ex: If the input is then the output is:
Note: Index is considered an even index.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
