C++ Program to output the sum of positive numbers

WAP to output the sum of positive numbers, sum of negative numbers, sum of even numbers,
sum of odd numbers from a list of numbers entered by the user. The list terminates when the
number entered is zero.

Showing Answers 1 - 1 of 1 Answers

JOYJIT DEB

  • Jul 19th, 2015
 

Code
  1. #include <iostream>

  2. "Enter a number to be added to your list, 0 to exit""Sum of All Positive numbers: ""Sum of All Negative numbers: ""Sum of All Even numbers: ""Sum of All Odd numbers: "

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions