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 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
Get step-by-step solutions from verified subject matter experts
