Computer Science, asked by paiswarya186, 7 months ago

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 nawaraskc22
1

Answer:10.

Explanation:

s=a[0]+a[0+1]

s=7+3

therefore,s=10.

Similar questions