What will be the output for the following program
for(i=1;i<=5;i++)
System.out.println (i);
System.out.println (i);
Answers
Answered by
1
Answer:
1
2
3
4
5
6
Explanation:
1st println is in loop while 2nd one is outside the loop
Similar questions
Computer Science,
2 months ago
Chemistry,
2 months ago
Science,
2 months ago
Math,
5 months ago
Math,
5 months ago
CBSE BOARD XII,
10 months ago
Social Sciences,
10 months ago