What does the following program segment output? d = 0; do { System.out.print(d + ); d++;

Question:

What does the following program segment output?
d = 0;
do
{
System.out.print(d + " ");
d++;
} while (d < 2);
a. 0
b. 0 1
c. 0 1 2
d. Nothing

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

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: