fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main {
  6. public static void main (String[] args) throws java.lang.Exception {
  7. int n;
  8. Scanner i = new Scanner(System.in);
  9. n = i.nextInt();
  10. for (int q = 1; q <= n; q++) {
  11. System.out.println(q * 2);
  12.  
  13. }
  14.  
  15. }
  16.  
  17. }
Success #stdin #stdout 0.09s 35352KB
stdin
2
stdout
2
4