0
What will be the output ?
int a=10,b=15; While(a<b) { System.out.println(b); a++; b++; } System.out.println(a);
2 Antworten
+ 4
It'll result in an infinite loop because the condition of your while loop will never become false.
So it'll print the value of b incrementing each time.
0
Haha output never ends if the last line is System.out.println(a)
Else what ever you wrote it will throw a compiler erroe because ot doesn't recognise sysystem.out.println