The loop that displays all even numbers from 0 to 18 is ____.
A. Declare Numeric evenNum = 1
While evenNum <= 18
Display evenNum
evenNum = evenNum + 2
End While
B. Declare Numeric evenNum = 0
While evenNum <= 18
Display evenNum
evenNum = evenNum + 2
End While
C. Declare Numeric evenNum = 1
While evenNum < 18
Display evenNum
evenNum = evenNum + 2
End While
D. Declare Numeric evenNum = 0
While evenNum = 18
Display evenNum
evenNum = evenNum + 2
End While
Answer: B
Computer Science & Information Technology
You might also like to view...
In creating a secure password, avoid ____.
A. using your pet's name B. using eight characters or more C. combining uppercase and lowercase letters D. replacing letters with numbers
Computer Science & Information Technology
Can you export assets to a different size than the original?
What will be an ideal response?
Computer Science & Information Technology