predict output:
int a[ ]= {1,2,4,6,8,4};
for (i = 0; i<= a.length; i++)
{
s= a[i] + a[4 - i];
System.out.println (s);
}
please help me
Answers
Answered by
2
output of above code :-
9
8
8
8
9
4
Similar questions