Question: Write some code that inputs a set of int values until the user enters a sentinel value and then computes the average of the numbers
Write some code that inputs a set of int values until the user enters a sentinel value and then computes the average of the numbers entered. Make sure that your code cannot produce a division by zero error. Assume that the scanner class has already been imported.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
