What is the output of the following java program segment for(int k=2;k<=6) { System.out.println(k+1); }
Answers
Answered by
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
Math,
3 months ago
Physics,
7 months ago
English,
7 months ago
CBSE BOARD XII,
10 months ago
English,
10 months ago