Accenture Accenture Primer Practice Question
What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number ENDAnswer options
A
-2
B
0
C
4
D
2
Correct answer: -2, 2
Explanation
The source marks the correct answer as: -2.