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

The box plots show Devonte’s scores in Spanish and in French. Spanish 2 box plots. The number line goes from 50 to 100. For Spanish, the whiskers range from 55
what happened The Broad Street Cholera Outbreak 1854 without using wikipedia
Explain how the shape of a river's stream bed can affect the river's speed and its power to cause erosion.
The following is a description of the conversion cycle of Central Production Limited: The conversion cycle of the company is triggered by a report from the ware
please help me !! slope and y-intercept *image attached
How are the army and religious beliefs linked in the Aztec Empire?​
Antonio's toy boat is bobbing in the water next to a dock. Antonio starts his stopwatch, and measures the vertical distance from the dock to the height of the b
Which of the following does not support creating curriculum out of play? A. Providing resources B. Giving children freedom of choice C. Offering structured rule
Compare the economic freedom ratings and descriptions of Hong Kong, the United States, and Iran. Record your findings in the table provided below
Let f(x) = 4x3 + 3x2 − 20x − 15 and g(x) = 4x + 3. Find f of x over g of x. x2 − 5 4x2 + x x2 − 5x 4x2 + 12