Question: Write a method dotSequence that accepts an integer n as a parameter and returns a symmetric sequence of characters and numbers as in the table
Write a method dotSequence that accepts an integer n as a parameter and returns a symmetric sequence of characters and numbers as in the table below:
dotSequence(1) [.] dotSequence(2) [..] dotSequence(3) .3.[.].3. dotSequence(4) .4.[..].4. dotSequence(5) .5.[..].5. dotSequence(6) .6..3.[.].3..6. dotSequence(7) .7..3.[.].3..7. dotSequence(8) .8..4.[..].4..8. dotSequence(9) .9..4.[..].4..9. dotSequence(10) .10..5.[..].5..10.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
