Question: a. Create a small java program section with a for loop which inputs 10 numbers, and calculates their sum, then prints the sum. b.
a. Create a small java program section with a for loop which inputs 10 numbers, and calculates their sum, then prints the sum. b. Convert the for loop in part a, into a while loop to do the same task c. Convert the for loop in part a, into a do while loop to do the same task. 2. Using an array, input 20 values from the user, calculate the average and print how many values are under the average.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
