Computer Science, asked by bhaumikpapri20, 5 months ago

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 nareshsatpute15
1

Answer:

1

2

3

4

5

6

Explanation:

1st println is in loop while 2nd one is outside the loop

Similar questions