Question: What does the following program segment output? for(m = 0; m < 4; ++m); for(n = 0; n < 2; ++n); System.out.print(m +
What does the following program segment output?
for(m = 0; m < 4; ++m);
for(n = 0; n < 2; ++n);
System.out.print(m + " " + n + " ");
a. 0 0 0 1 1 0 1 1 2 0 2 1 3 0 3 1
b. 0 1 0 2 1 1 1 2 2 1 2 2
c. 4 2
d. 3 1
Step by Step Solution
3.38 Rating (170 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
