Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
var arr = [12, 42, 63, 56, 122, 17, 117, 25, 645, 722, 964];
for (var i = 0; i < arr.length; i++)
{
if ((arr[i] % 2) === 0)
{
console.log(arr[i]);
}
}
c#
int[] a = {2, 4 , 25 ,50};
int c;
for(int i=0; i<=a.Lenght; i++){
if( (a [i] % 2)==0 ) {
c=a[i];
Console Writeline(c);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question