Fiveable
Fiveable

What is the output of the following code? ``` int x = 1; while (x < 5) { System.out.print(x + " "); x ++; } ```




© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.