title: Build a pyramid with numbers between 1 and the inserted integer
body: <p>i'm trying to build a pyramid with numbers between 1 and the inserted number. For example, if i insert 6 to the integer, that the piramid will be as there:</p>
  
  <pre><code>12345654321
   234565432
    3456543
     45654
      565
       6 
  </code></pre>
  
  <p>I tried using a for loop but i get in any line one or ++ numbers to 6.
  This is the code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  
  int main()
  {
    int i,j,d;
    std::cin &gt;&gt; d;
    for(i=1;i&lt;=d;i++)
    {
       for(j=1;j&lt;=i;j++)
         printf("%d",j);
       printf("\n");
    }
    getch();
    return 0;
  }
  </code></pre>
  
  <p>How can i solve this problem building a pyramid like the shown.</p>