Write a program to read a list of nonnegative integers

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.

I hope you guys will help me pls
Last edited on
You've got a month to do it, so you should get an answer before 25-05.
In a PM received this morning...
Parthi wrote:
f**k u


Good luck with your studies.

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.
Last edited on
Topic archived. No new replies allowed.