
for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0)

Hi Friend,
Try the following code:
class InfiniteLoop
{
public static void main(String[] args)
{
for (int i = 1; i <i+1; i++) {
System.out.println(i);
}
}
}
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.