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

Given one zero of the polynomial function, find the other zeros. f(x)=x^3+2x^2-20x+24; -6
Why were China and Japan so conservative before the 1800s?
¿Cuáles son los alimentos con mayor contenido de proteínas y lípidos?
A water jug is in the shape of a prism. The area of the base is 100 square inches and the height is 20 inches. How many gallons of water will the water jug hold
Please help me. I need help asap!
What was Tocqueville’s concern with individualism in America? A. Individualism would result in taking power from the government. B. Individualism would cause
What does this paragraph mean?
Which is the simplified form of the expression (6^-2•6^5)^-3
What is light?what are the properties of metal?​
Ben climbed 15 feet up a hill,8 feet down a hill, and 11 feet up another hill. What is his overall change in elevation?