arrays in c++

Write your question here.
I want sum of number in array. example:
enter any 5 numbers:12345=15
or if user enters 16=7
the control should not go to the next line.every time it should not ask to enter the number. it should ask just once?
as simple as possible code should be.
thank you!
Write your answer here.
This post is so rude.
Topic archived. No new replies allowed.