Question: Please write in c++ Thank you Two integers are read from input as variables id1 and id2. Declare a vector of integers named idRoster and

Please write in c++

Thank you

Please write in c++ Thank you Two integers are read from inputas variables id1 and id2. Declare a vector of integers named idRoster

Two integers are read from input as variables id1 and id2. Declare a vector of integers named idRoster and initialize the elements at the odd indices with the value 0 and the even indices with the variables id 1 and id 2 in the order the input integers are read. Ex: If the input is 1521 , then the output is: 150210 Note: Index 0 is considered an even index. Note: Index 0 is considered an even index

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!