marcbeaubrun marcbeaubrun
  • 10-05-2017
  • Computers and Technology
contestada

How many times does the following code execute?
int x=0;
int y=3;
While x<=y
x=x+1;
endWhile

A. 0B. 3C. infiniteD. 4 Program design and development

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 11-05-2017
The first time the while statement is evaluated, x = 0 so the answer is D. 4
Answer Link
iCryptic
iCryptic iCryptic
  • 12-05-2017
Infinite because it is a infinite loop that is true and the first two lines were just declaring variables
Answer Link

Otras preguntas

20 PTS! On my quiz there are 25 questions, I got a 96%. How many did I get right and how many wrong?
Calcula la distancia entre las rectas: r ≡ x - 2y - 3 = 0 y s ≡ x - 2y + 1 = 0
-4.2x 31.5=165.1 solve
What is 35a + 14 = 1
Someone, please help I'll give 10 points and brainliest to the person who answers first
\angle a∠aangle, a and \angle b∠bangle, b are complementary angles. \angle a∠aangle, a measures 64^\circ64 ∘ 64, degrees.
Which function is a linear function ?
Fill in the table using this function rule. y=-3x + 5
Slope is - 1 and (0, 2) is on the line
What is the slope of the line? Anwer