fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n = 0;
  7. cin >> n;
  8. for (int i = 2; i < n * 2; i += 2)
  9. {
  10. cout << i << endl;
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4292KB
stdin
Standard input is empty
stdout
Standard output is empty