Promi_38

cf 1443A

Dec 21st, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int t;
  6.     scanf("%d", &t);
  7.    
  8.     while(t--)
  9.     {
  10.         int n, i;
  11.         scanf("%d", &n);
  12.         for( i = 0; i < n; i++) printf("%d ", n*4 - 2*(i+1));
  13.         printf("\n");
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment