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
History,
1 month ago
Science,
1 month ago
Math,
1 month ago
Math,
3 months ago
Math,
3 months ago
CBSE BOARD XII,
8 months ago
Social Sciences,
8 months ago