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++

Code :
#include
#include
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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3bde3817ef_89166f3bde307a8f.jpg)
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
Get step-by-step solutions from verified subject matter experts
