Ask Question
6 December, 11:04

How many times does the following code execute?

int x=0;

int y=3;

While x<=y

x=x+1;

endWhile

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

+2
Answers (2)
  1. 6 December, 11:46
    0
    The first time the while statement is evaluated, x = 0 so the answer is D. 4
  2. 6 December, 12:19
    0
    Infinite because it is a infinite loop that is true and the first two lines were just declaring variables
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How many times does the following code execute? int x=0; int y=3; While x ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers