Write a program to read a list of nonnegative integers and to display the largest, the smallest integer and average of all the integers the user indicates the end of the input by entering a negative sentinel value that is not used in finding the largest ,smallest and average value the average should be a value of type double so that is computed with a fractional part.
You should understand why I responded that why and why you've not received any help. You've essentially been given a homework task, you've got a month to do it and you've posted on a forum pretty much asking someone else to write it for you. You'll learn nothing by doing this.
If you had attempted to write the program and were stuck on a particular section, my answer would have been very, very different.