Computer Science, asked by justheretocopy, 8 months ago

State the output of the following program segment:
int i=1; int s[ ]={2,4,6,7,8,9,10};
while(i {
System.out.println(s[i]+1);
if(i s[i+1]++;
i++;
}

Answers

Answered by VivekLK
0

Answer:

following program segment:

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

while(i {

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

if(i s[i+1]++;

i++;

}

Similar questions