int a[4] = {2,4,6,8};
for(i=0;i<=1;i++)
{
s = a[i] + a[3 - i];
System.out.println(s);
}
Answers
Answered by
2
Answer:
1010( without spaces)
Explanation:
a[0]=2
a[1]=4
a[2]=6
a[3]=8
Loop works two times
first time for i=0
and second time for i=1
hope it helps you
Similar questions
Math,
5 months ago
Geography,
5 months ago
Business Studies,
9 months ago
Social Sciences,
1 year ago
English,
1 year ago