Question: code in c++ While loop to check a number is zero or not. Often the number of times a loop is executed is not predetermined.
While loop to check a number is zero or not. Often the number of times a loop is executed is not predetermined. You may use an input value to signify the end of the loop. Such a value is known as a sentinel value. Write a program that reads and calculates the sum and average of an unspecified number of integers. The input o signifies the end of the input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
