The following code is an example of what kind of loop? Scann…

Questions

The fоllоwing cоde is аn exаmple of whаt kind of loop? Scanner userInput = new Scanner(System.in);int X = 0;while(X != -1){  X = userInput.nextInt();}