Computer Science, asked by rkjoshichev, 10 months ago

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 Anonymous
2

output of above code :-

9

8

8

8

9

4

Similar questions