Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 3, 5, 7, 2, 9}; vector
newnumbers(6); reverse_copy(numbers.begin(), numbers.end(), newnumbers.begin()); for (int number : newnumbers) { cout << number << " "; } return 0; }
9 2 7 5 3 1