fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. int x;
  10. cin>>x;
  11. cout<<x*2<<"\n";
  12. }
  13. // your code goes here
  14. return 0;
  15. }
Success #stdin #stdout 0s 5524KB
stdin
4
1
2
3
4
stdout
2
4
6
8