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


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
Get step-by-step solutions from verified subject matter experts
