This preview shows page 1. Sign up to view the full content.
Unformatted text preview: hod writeSequence takes an integer that n as a parameter and writes to System.out that a symmetric sequence of n numbers with descending i^r6^6rc ending in 1 followed by ascending integers beginning with I, as in the table bel-ow:
Method Cal-1 Output Produced writeSequence (1); wr j.teSequence (2 ) ; writeSequence (3); wri.teSequence (4 , writeSequence (5 , wri-teSequence ( 6 writeSeguence (7 writ.eSequence (8); writeSequence ( 9) i writeSequence(1O); Notice for that f or even values 1 11 2L2 2LL2 32].23 321123 432L234...
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