Computer Science, asked by anshu93687, 10 months ago

) State the output of the following program segment:

int i=1;

int s[]={2,4,6,7,8,9,10};

while(i<s.length)

{

System.out.println(s[i]+1);

if(i<s.length-3)

s[i+1]++;

i++;

plz tell the output ​

Answers

Answered by aashishkota
3

Answer:

3

6

8

9

10

10

11

Explanation:

s[i+1]++ is executed for i = 0,1,2,3

Answered by peerafaaq
0

Answer:

I will give him dj Alok ok.........

Similar questions