Your first if-clause is fine. But you only need one more, for the case that the number is 20 or greater. Then, within that second clause, create another clause testing whether the number is an even multiple of ten or not. If it is, add the hyphen-ones. If it is not, no more printing needed.
Thus, no duplicate print statements.
------------------
- Ryan Burgdorfer
- Java Acolyte