Question: In C++ Write a program that accepts numbers from the user (potentially floating point) until they enter something invalid, then print the average of everything
In C++
Write a program that accepts numbers from the user (potentially floating point) until they enter something invalid, then print the average of everything they entered. Do not print a prompt for the user, your only output for the program should be a line that looks like: Average: ### (Replace ### with the correct average) If the first input is invalid, print the following error message instead Error: division by zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
