Computer Science, asked by Anonymous, 7 months ago

What is the output of the following java program segment for(int k=2;k<=6) { System.out.println(k+1); }

Answers

Answered by hoangmustang
1

Answer:

i think your statement is incorrect or you mean

for(int k = 2; k <= 6; k++//you miss this part){

System.out.println(k+1);

}

Explanation:

Similar questions