Answer to Question #40000 in C# for Ram Reddy Reddy

Question #40000
write a c program which takes maximum of 10 integer numbers which are in the range of 0-100
out of input numbers one must be -1
in the ouput we should get sum of entered numbers before -1
numbers entered after -1 are not counted in the sum


for example:
input = 2 -1 2 3
ouput should be = 2


for example
input = -1 4 5
ouput should be = 0


for example
input = 10 3 4 -1
output = 17

for example
input = 2 2 3 4 5 6 -1 7 8 9
output = 22
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS