How to change text output depending on the value of x
<p>I want to create a list from one to ten. Each time it loops it adds one to <code>x</code>, I also want it to print like this.</p>

<pre><code>1
 2
  3
   4
    5
     6
      7
       8
        9
         10
</code></pre>

<p>Right now it prints like this:</p>

<pre><code>1
2
3
4
5
6
7
8
9
10
</code></pre>
