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

And the last question is: The sum of two consecutive integers is at least 14. What is the least possible pair of integers? A) 4 and 5 B) g and 7 C) 7 and 8 D)
what are fossil fuels? why should we use them wisely?
What infinity multiplied by pi
A theater technician charges a $200 flat fee and 5% of all profits from ticket sales per show. If the technician made $400.00 on a show, how much total profit w
And the last question is: The sum of two consecutive integers is at least 14. What is the least possible pair of integers? A) 4 and 5 B) g and 7 C) 7 and 8 D)
A man who is 74 inches tall stands beside a palm tree. The length of the man's shadow is 26 inches. The palm tree's shadow is 80 inches long. How tall is the pa
What are the particles floating around the nucleus of the atom
what are the three particles of an atom
Find the roots of each polynomial equation X^3-2^2+5x-10=0.
derivative of R=(100+50/lnx)