Question: What does the following statement output? for(f = 1, g = 4; f < g; ++f, g) System.out.print(f + + g +
What does the following statement output?
for(f = 1, g = 4; f < g; ++f, ––g)
System.out.print(f + " " + g + " ");
a. 1 4 2 5 3 6 4 7…
b. 1 4 2 3 3 2
c. 1 4 2 3
d. Nothing
Step by Step Solution
3.48 Rating (174 Votes )
There are 3 Steps involved in it
c... View full answer
Get step-by-step solutions from verified subject matter experts
