title: Trying to reverse/invert display of digit pyramid
body: <p>My code below prints the following.</p>
  
  <blockquote>
  <pre><code>       1
        123
       12345
      1234567**
  </code></pre>
  </blockquote>
  
  <p>I want to to display this instead, but not sure what I'm doing wrong.</p>
  
  <blockquote>
  <pre><code>     1234567
        12345
         123
          1**
  </code></pre>
  </blockquote>
  
  <pre><code>    int a = 1;
      int b = t5;
      for (int i = 1 ; i &lt;= t5 ; i++) {
          for (int c = 1 ; c &lt;= b - 1 ; c++) { 
              text.append("  ");
          }
          for (int k = 1 ; k &lt;= a ; k++) {
              String result = String.valueOf(k);
              text.append(result);
          }
          a = a + 2;
          b--;
          text.append("\n");
      }
  </code></pre>