Question: Write a C program that reads a set of integer values, one value per line. The data set is terminated by the user entering 0

Write a C program that reads a set of integer values, one value per line. The data set is terminated by
the user entering 0(used to mark end the data). The program outputs the following (excluding the
terminating 0):
(a) The total number of values in the set.
(b) The number of even values in the set.
(c) The number of negative values in the set.
(d) The average of all values.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!