Advertisement
Mancolo

Нерешенная задача 2

Apr 18th, 2021
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. package com.company;
  2. import java.nio.Buffer;
  3. import java.nio.IntBuffer;
  4. import java.util.*;
  5. public class Solution {
  6.     public static void main(String[] args) {
  7.         Scanner in = new Scanner(System.in);
  8.         int a, i, j, b;
  9.         int[] x;
  10.         int[] y;
  11.         a = in.nextInt();
  12.         x = new int[a];
  13.         y = new int[a + 1];
  14.         for (i = 0; i < a; i++) {
  15.             x[i] = in.nextInt();
  16.             y[i] = x[i];
  17.             i = i + 1;
  18.             j = y[i];
  19.             System.out.println(x[i]);
  20.         }
  21.     }
  22. }
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement