Advertisement
knyazer

Untitled

Dec 8th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Scanner sc = new Scanner(System.in);
  2. int n = sc.nextInt();
  3.  
  4. int[] arr = new int[n];
  5.  
  6. for (int i = 0; i < n; i++)
  7. arr[i] = n - i;
  8.  
  9. for(int x : arr)
  10. System.out.printf("%d ", x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement