infinite for loops in java with examples

0

infinite loop is a loop that does not end.

this is an example of it:

for (int i = 10; i >0; i++) {
        System.out.println("hello"+i);
            System.out.println("hello");
            i++;
            if(i%2==0)
            System.out.println(i);
}

All Contributions

total contributions (0)

New to examplegeek.com?

Join us