What will be the output of following snippet and how many time the loop will be repeated int x=3; while(true) { System.out.print(+x); if(Hx>=6) break; }
Answers
Answered by
0
Answer:
loop cannot iterate. answer is 0 times.
because while condition is not true.
true means 1 or ture(boolean)
false means 0 or false(boolean)
3 is not 1 or true.
so while cannot exectue
Similar questions