Chanz1317 Chanz1317
  • 20-03-2024
  • Computers and Technology
contestada

What number will the following code display on the computer screen?

int sum = 0;int y = 0;do{ for (int x = 1; x <= 5; x += 1) sum += x; //end for y += 1;} while (y < 2);cout << sum << endl;

a. 5
b. 8
c.15
d. 30

Respuesta :

Otras preguntas

simplify 16.55(8) + 5.97(3)​
3x(x + 6) = -10 step by step equation
Question 10 of 10 Which of the following best explains why diction is important in a story? A. The effect a story has on a reader has a lot to do with word choi
8% of the High School students have their license. If there are 1000 high school students in your neighborhood, how many have their license internet Enter your
How many grams of oxygen are produced when 3.0 moles of potassium chlorate decompose completely?
Suppose you deposit $1000 in an account paying 4% annual interest, compounded continuously. Find the balance after 10 years.
Convert these mixed numbers into improper fractions.
Mark the absolute maximum point of the graph
Calculate the concentration of a 220 g solution of calcium chloride (CaCl2) that has a volume of 11 L
ocupo determinar la posicion relativa de y con respecto a la circunferencia help