Ask Question
30 November, 21:12

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

+3
Answers (2)
  1. 30 November, 22:29
    0
    The first time the while statement is evaluated, x = 0 so the answer is D. 4
  2. 30 November, 22:57
    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?
Find an answer to your question ✅ “How many times does the following code execute? int x=0; int y=3; While x ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers