public class Main {
public static void main(String[] args) {
int count = 0;
int[] arr = new int[(int)(Math.random()*100)];
for(int i=0;i<arr.length;i++){
arr[i] = (int)(Math.random()*100);
if(arr[i]%2==0) count++;
System.out.print(arr[i]+" ");
}
System.out.print("\nЧетных чисел: "+count);
public class Main {
public static void main(String[] args) {
int count = 0;
int[] arr = new int[(int)(Math.random()*100)];
for(int i=0;i<arr.length;i++){
arr[i] = (int)(Math.random()*100);
if(arr[i]%2==0) count++;
System.out.print(arr[i]+" ");
}
System.out.print("\nЧетных чисел: "+count);
}
}