Question: 2. (10 points) Write code that uses a while loop to print the following sequence of numbers, count how n21 many of them, and calculate

2. (10 points) Write code that uses a while loop to print the following sequence of numbers, count how n21 many of them, and calculate the average value of these numbers: 110 105 100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 2 public class Numbers nte public static void main (String [1 args) int x 110, y 5 anl //declare more variables if necessary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
