Consider the following code snippet:
for (int i=i1; i<i2; i++){ System.out.println (i); }
i1 and i2 can be any two integers.
Which of the following will produce the same result?
Select 1 option
Correct Option is : E
In such a question it is best to take a sample data such as i1= 1 and i2=3 and execute the loops mentally.
Eliminate the wrong options.
Outputs of all the options are given above.
Thus, none of them is same as the original.