Advertisement
Josif_tepe

Untitled

Oct 23rd, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Pocetok {
  4.     public static void main(String[] args) {
  5.       Scanner sc = new Scanner(System.in);
  6.         int[] niza = new int[10];
  7.       for(int i = 0; i < 5; i++) {
  8.           niza[i] = sc.nextInt();
  9.       }
  10.       for(int i = 0; i < 5; i++) {
  11.           System.out.print(niza[i] + " ");
  12.       }
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement