Question: /* ----------------------------------------------------------- Write a program [2 mark] ----------------------------------------------------------- Write a program that prompts the user to enter a series of numbers until the user enters

/*

-----------------------------------------------------------

Write a program [2 mark]

-----------------------------------------------------------

Write a program that prompts the user to enter a series of

numbers until the user enters -999 to signal a stop, and

then displays the sum of all the numbers entered except

-999.

==========================

Sample Run:

Enter an integer: 10

Enter an integer: 2

Enter an integer: 5

Enter an integer: 3

Enter an integer: -999

Sum = 20

==========================

Sample Run:

Enter an integer: 7

Enter an integer: 91

Enter an integer: -999

Sum = 98

==========================

---------------------------------------------------------------*/

Write a program in C++

Please solve this question

Thankyou In advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!