Question: T42.2 Basic while loop with user input Write an expression that executes the loop while the user enters a number greater than or equal to

 T42.2 Basic while loop with user input Write an expression that
executes the loop while the user enters a number greater than or

T42.2 Basic while loop with user input Write an expression that executes the loop while the user enters a number greater than or equal to O Note: These activities may test code with different test values. This activity will perform three tests, with user input of 5, 2 with user input of -17, then with user input 1,0,-1. See HowUse zyBooks Also note: If the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report Program end never reached: The system doesn't print the test case that caused the reported message -1, then 1 import java.util.Scanner passed 3 public class NonNegativelooper ( public static void main (String args) Scanner scnr new ScannerCSystem.in); t while Your solution goes here System.out.printlnC"Body"; System.out.printInC"Done."; return; 14 15 16 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!