Question: 2. Write a program that find the average of unspecified number of integers entered by the user, -1 determines the end of the input. Use

 2. Write a program that find the average of unspecified number

2. Write a program that find the average of unspecified number of integers entered by the user, -1 determines the end of the input. Use While loop. 3. Write a program that reads and calculates the sum of an unspecified number of integers. The input 0 determines the end of the input. Use do-while loop. 4. Write a program that reads unspecified number of integers and determine how many odd and how many even numbers have been entered. Your program ends when the input is 0 . Use do-while loop. 5. Write the following code using for- loop instead of while loop

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!