gbengaade47 gbengaade47
  • 28-09-2020
  • Computers and Technology
contestada

Design the logic for a program that allows a usher to continuously enter numbers until the usher enters 0. Display the sum of the numbers entered.

Respuesta :

TheMaster999
TheMaster999 TheMaster999
  • 28-09-2020

int sum = 0, n;

do {cin>>n; sum+=n;}while (n!=0);

cout<<sum;

Answer Link

Otras preguntas

You roll a fair 6-sided die what is the probability of rolling a number grader than 4?
¿Por qué es posible afirmar que Recabarren es un severo crítico del desarrollo nacional tras 100 años del inicio del proceso de Independencia?
Kelsi has 48 books 2/6 of those books are fantasy and sci-fi .3/8 of those books are sci-fi . How many of kelsi’s books are sCI-fi
Can someone help me i'm bad at this type of stuff will give 100 points
Please help! Correct answer only, please! I need to finish this assignment this week. Find the product AB, if possible. Explain if it is not possible. A. B. C.
Please answer this correctly
Simplify the expression below. If your answer is not a whole number, enter it as a fraction in lowest terms, using the slash mark (/) as the fraction bar. 8 = (
Please answer this correctly
How do you graph f(x) = (x - 1) squared - 2
Help me please people please