What is the output of the following code? b = 1; while(b < 4) System.out.print(b +

Question:

What is the output of the following code?

b = 1;

while(b < 4)

System.out.print(b + " ");

a. 1

b. 1 2 3

c. 1 2 3 4

d. 1 1 1 1 1 1...

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: