Question: Help me write the code in c++ for the following pseudocode The original question was: Design the logic for a program that allows a user
Help me write the code in c++ for the following pseudocode The original question was: Design the logic for a program that allows a user to continuously enter numbers until the user enters 0. Display the sum of the numbers entered"
Pseudocode:
// Start
// Declarations
// number value
// number sum
//
// Initialize sum to 0
// output "Please enter a number (0 to terminate): "
// input value
// while value != 0
// sum = sum + value
// output "Please enter a number (0 to terminate): "
// input value
// endwhile
// output The value of sum is sum
// Stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
