Question on: SS3 ICT - Basic Programing III

What is the output of the following code?

java Copy code

x = 1

WHILE x < 5

    PRINT x

    x = x + 2

WEND

View related lesson
A

1 2 3 4

B

1 3 5

C

2 4 6

D

1 2 4

Ask EduPadi AI for a detailed answer
Correct Option: B

Add your answer

Notice: Please post responsibly.

Please share this, thanks!

No responses