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

A is the average of numbers x and y. find the value of y in terms of A and x
do you have self confidence? give reasons for your answer so what has given you self confidence and what has prevented you ​
In 2014 Brad was 146 cm tall. He grew to be 181 cm tall by the year 2021. What was Brad's rate of growth over this period?
10 times a number, x, is 1/2 the sum of the number and three which answer represents this situation 10x+1/2x+3 10x=1/2(x+3) 10x=1/2x+3 10x+1/2(x+3)
What do you expect would happen to the distilled water?
Which of the equations below is not a Linear Equation?
Why is ammianus criticizing many of his countryman?
what is the meaning of coral reefs​
its a fraction mixed number I dont know how to do this
This is geometry and I am unable to find both answers to the blanks, I need help.