Question: Intro to C++ Code : #include #include using namespace std; int main() { int a[20], n, i = 0; cout>n; cout>n; cout Error Message :

Intro to C++

Intro to C++ Code : #include #include using namespace std; int main()

Code :

#include

#include using namespace std;

int main() { int a[20], n, i = 0; cout>n; cout>n; cout

Error Message :

{ int a[20], n, i = 0; cout>n; cout>n; cout Error Message

Take the average of some numbers. Show all the numbers that are below average You can assume that there will not be more than 20 numbers entered For example Enter a weight (0 to stop): 1 Enter a weight (0 to stop): 2 Enter a weight (0 to stop): 3 Enter a weight (0 to stop): 4 Enter a weight (0 to stop) 5 Enter a weight (0 to stop): 6 Enter a weight (0 to stop) 7 Enter a weight (0 to stop) 8 Enter a weight (0 to stop): 9 Enter a weight (0 to stop): 10 Enter a weight (0 to stop): 0 The total was 55 The average is 5.5 Here are all the numbers less than the average: 4

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!