Ambermarie472 Ambermarie472
  • 07-02-2024
  • Computers and Technology
contestada

What is the result when the following code is run
double x = 1;
double y = 1;
int i = 0;
do
{
y = x / 2;
x = x + y;
i = i + 1;
}
while (x < 2.5);
System (i + " ");
a) 1
b) 2
c) 3
d) 4

Respuesta :

Otras preguntas

Im trying to get everything on my overdue list done- but most of its math anyone help?
Question 4 of 10 What is the result of converting 20 ounces into pounds? Remember that 1 pound = 16 ounces.
Select the correct answer from each drop-down menu. Anthony is evaluating an informational text about sports and the environment. How does the graphic feature
tis the season slope formula
Select the recovery program that correctly completes each sentence
Which statement best describes the domain and range of f(x) = –(7)x and g(x) = 7x? f(x) and g(x) have the same domain and the same range. f(x) and g(x) have the
How does Orwell use irony in this excerpt? The text shows that if the animals work harder, they will have luxuries they dreamed of. The text shows that Napoleon
Find the slope of a line parallel to the line that passes through (-4, -1) and (-1, 3)
Match each piece of information with the correct section in a career plan. I will earn at least $45,000 per year. I will need a license to practice. Within six
Use the excerpt to answer the question. Which of the following best captures George H. W. Bush’s description of the power of the United States in 1991? A. an