Unformatted text preview: -2. Write that n as a parameter and t.hat a method writeSquares takes an integer wrj-tes the first n squares to System.out separated by comrnas with the odd in descending in ascending squares order followed by the even squares For exampl-e, the call: order. writeSquares shoul-d 25 , produce 9, L, (5) i the 4, f ollowing output: 1,6 (25, 9, and 1) appear first in descending The odd squares order followed b1 (4 and 16) in ascending Notice the even squares order. c o r T \ m a sa r e that j-n the Iist. co...
View Full Document
This note was uploaded on 11/03/2009 for the course CSE 143 taught by Professor Sr during the Spring '08 term at University of Washington.
- Spring '08