Question: Arrange the following code to read in 1 0 values from a user and store them in a vector. Then print out the mean of
Arrange the following code to read in values from a user and store them in a vector. Then print out the mean of the values entered.
sum
this program fills a vector with values entered by the user and then prints the average of the entered values
vec inputEnter a number: ;
sum sum vec
fprintfThe mean of the entered values is 'sum;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
