#include<iostream>
#include<vector>
using namespace std;
int main()
{
vector<int> vec = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
for (auto i : vec)
cout << ((i % 2 != 0) ? i *= 2 : i) << " ";
cout << endl;
return 0;
}
4.21
最新推荐文章于 2024-10-21 18:55:07 发布