+ 7
public class Program { public static void main(String[] args) { int x = 0; int y = 0; while (x<1) { System.out.println(y); y++; }}} the condition of while loop x=0 is always true because x<1 so value of y is increment by 1 for infinite range so you created like this if you are asking something else let me know
21st Dec 2017, 8:23 AM
GAWEN STEASY
GAWEN STEASY - avatar