Computer Science, asked by hardikrawatne, 4 months ago

public class Main
{
public static void main(String[] args)
{
int i;
for( i = 1; i <=3; i++);
{
System.out.println(i);
}
System.out.println(i);
}
}

Answers

Answered by sambitmandal05
8

OUTPUT-

1

2

3

3

Hope this helps you.

PLEASE MARK MY ANSWER AS BRAINLIEST IF YOU LIKE IT.

Answered by chatgurmeet
2

Answer:

THIS IS THE LOOP QUESTION(JAVA)

SOLVE IT LIKE THIS:

i System.out.printIn

1 1

2. 2

3 3

4 4

Stop

value of i = 4

Similar questions