Write a program that adds up the positive integers


Problem:

Question- Write a C++ program that adds up the positive integers, starting at 1, until the sum equals or exceeds a value read from the keyboard, and then prints the last integer added to the sum. Use a Do-While loop to do the summing. Note the value entered by the user is greater than or equal to 1. The following shows a scenario of running the program.

Please describe the program that adds up the positive integers, starting at 1, until the sum equals or exceeds a value read from the keyboard.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that adds up the positive integers
Reference No:- TGS0893858

Expected delivery within 24 Hours