#11 – L2 Which condition XXXX will keep prompting the user…
#11 – L2 Which condition XXXX will keep prompting the user to enter a value greater than 8, until a value that is greater than 8 is actually input? int userInput;Scanner sc = new Scanner(System.in); do { System.out.println(“Enter a number greater than 8:”); userInput = sc.nextInt(); } while XXXX
Read DetailsWhen age is set to 15, only one message below will print. …
When age is set to 15, only one message below will print. if (age < 21) System.out.println("You can not drink legally yet"); if (age < 18) System.out.println("You can not vote yet"); if (age < 16) System.out.println("You can not drop out of school legally");
Read Details