Question: With C programming language Write a program that can read a groups of floating-point numbers from the user and calculates the average of the numbers.
With C programming language Write a program that can read a groups of floating-point numbers from the user and calculates the average of the numbers. The number of given floats are determined by the user dynamically. Thus, you need to use malloc() to request for the memory in a dynamic manner. A demo sample run of the program is shown below (The highlighted characters are the user input).

Please enter the number of floats will input: 5 Please enter 5 floats separated by spaces: 1.0 2.0 3.0 4.0 5.0 The average of 5 floats is 3.000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
