+91-85006-22255
What will be the output of the program?
class Output{ public static void main(String s[]) { int i = 1, j = 10; do { if(i > j) break; j--; } while (++i < 5); System.out.println("i = " + i + " and j = " + j); }}
Topic: Using Break In for Loop To Exit
Read this topic Take test on this topic
Open In App