1. Engineering
  2. Computer Science
  3. what will be the value of x after the following...

Question: what will be the value of x after the following...

Question details

What will be the value of x after the following code is executed?


x ← 0

WHILE ( x < 5 )

x ← x + 1

ENDWHILE

Question 5 options:

A)

none of the other answers

B)

6

C)

5

D)

0

E)

4

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution