What does the following program segment output? for(m = 0; m < 4; ++m); for(n = 0;

Question:

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

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: