Solved: Write a program that takes multiple integers from the user

$30.00

Category:

Description

Solved: Write a program that takes multiple integers from the user

QUESTION 3. (15 points) Write a program that takes multiple integers from the user and, for each integer, computes the sum of numbers up to that integer. For example, if the user enters 5, the program computes (1+2+3+4+5=15). If the user enters a negative number, the program displays an error message and prompts for a new number. The sentinel value of -1 is used to terminate the program.


error: Content is protected !!