how to check whether the number ends with 9 or not in numbers 1to 100
<p>How can I to print the numbers from 1 to 100 in the following format?</p>

<pre><code>1-------------9
10------------19
20-------------29
30--------------39
40-----------49
50-----------59
60-----------------69
70---------------79
80---------------89
90-----------------99
</code></pre>
