int[] arr = new arr[10];
Random ran = new Random();
foreach(int item in arr) item = ran.Next(15;30);
int sum=0;
foreach(int item in arr) {
if(item%2==0) sum+=item;
}
int[] arr = new arr[10];
Random ran = new Random();
foreach(int item in arr) item = ran.Next(15;30);
int sum=0;
foreach(int item in arr) {
if(item%2==0) sum+=item;
}