Question: Name this program average.c The program looks at all the command-line arguments, which all represent valid integers, and prints the average of all values seen
Name this program average.c The program looks at all the command-line arguments, which all represent valid integers, and prints the average of all values seen on the command line. There will always be at least one integer entered on the command line. Sample executions are shown below:
./a.out 10 20 30 25 15 5 20 40
The average of these 8 numbers is 20.625000
./a.out 99 55 11 -6 600 32
The average of these 6 numbers is 131.83333
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
