Question: Using c plus plus shell a) Read 5 numbers from the user, utilizing a FOR loop structure b) Calculate the average of the 5 numbers.
a) Read 5 numbers from the user, utilizing a FOR loop structure b) Calculate the average of the 5 numbers. You should use a floating point variable for this c) Print out "Average ", then the average d) Repeat this program using a WHILE loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
