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 Qing Rule was known as a rule of a. peace. c. war. b. prosperity. d. both a and b.
1. The forty-niners were men that rushed to California in 1848–49 in search of gold. Were most of the forty-niners successful in their search for riches? Why or
The Art of the Swing.What do you think would be included in Chapter?
A 19-year-old female is found unconscious by her roommate. your primary assessment reveals that her breathing is inadequate. as you insert an oropharyngeal airw
Pat picked a card from a standard deck, looked at it, and then put it back. he then picked a second card. what is the probability that pat picked a diamond or a
Ancient Egypt's Late Period occurred between 664 – 332 BCE. The Persian Empire was in existence _____ ancient Egypt's Late Period. A. 500 years before B.
The japanese attacked on pearl harbor began just before 8AM on sunday, december 7 1941 within a short time five of eight battleships at pearl harbor were sunk a
How can a translator affect the tone and pacing of a story? A. By adding or removing punctuation B. By changing the original story C. By developing the charac
Hey can someone lend me a helping hand for my english question ? (: Please be sure of ur answer cuz this is an exam haha Choices are A. FORESHADOWING B. CONCLU
The direction of earth's axis relative to the distant stars changes slowly with time, tracing out a circular path over a period of about 26,000 years. this is c