fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a, b;
  7. cin>>a;
  8. while(a--) {
  9. cin>>b;
  10. if(b%2) cout<<b-1<<endl;
  11. else cout<<b<<endl;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3344KB
stdin
2
2
4
stdout
2
4