Question: What does the following program segment output? d = 0; do { System.out.print(d + ); d++; } while (d < 2); a. 0 b.
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
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
