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
English,
3 months ago
English,
3 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Hindi,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago