Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; int main() { // Create a vector called numbers that will store integers vector
numbers = {1, 7, 3, 5, 9, 2}; // Create a vector called copiedNumbers that should store 6 integers vector
copiedNumbers(6); // Copy elements from numbers to copiedNumbers copy(numbers.begin(), numbers.end(), copiedNumbers.begin()); // Print elements of copiedNumbers for (int num : copiedNumbers) { cout << num << "\n"; } return 0; }
1
7
3
5
9
2