import java.util.Scanner; public class Kol3 { public static void main(String[] a) { Scanner sc = new Scanner(System.in); int polje[]; System.out.println("Vpiši stevilo elementov: "); int velikost = sc.nextInt(); polje = new int[velikost]; for(int i = 0; i < polje.length; i++){ System.out.println("Vpiši element: "); polje[i] = sc.nextInt(); } //soda stevila for(int i = 0; i < polje.length; i++){ if(polje[i] % 2 == 0){ System.out.println(polje[i]); } } //koliko stevil je negativnih int negativna = 0; for(int i = 0; i < polje.length; i++){ if(polje[i] < 0){ negativna++; } } System.out.println(negativna); //tretji del int produkt = 1; for(int i = 0; i < polje.length; i++){ if(i % 2 == 1){ produkt = produkt * polje[i]; } } System.out.print(produkt); } }