Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 266 Bytes

File metadata and controls

16 lines (13 loc) · 266 Bytes
#include <iostream>
#include <vector>

using std::cin; using std::cout; using std::endl;
using std::vector;

int main()
{
    vector<int> a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    for (auto i : a){
        cout << (i % 2 != 0 ? i * 2 : i) << " ";
    }
}