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,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Physics,
9 months ago
English,
9 months ago
CBSE BOARD XII,
1 year ago