if int a={7,3,2,3,5}. Write output of the following program segment . for(i=0;i<=2;i++) { s=a[i]+a[i+1]; System.out.println(s); } PLS help me, friends, it's urgent
Answers
Answered by
1
Answer:10.
Explanation:
s=a[0]+a[0+1]
s=7+3
therefore,s=10.
Similar questions
Science,
4 months ago
Science,
4 months ago
Math,
9 months ago
Social Sciences,
9 months ago
Hindi,
1 year ago
Social Sciences,
1 year ago