title: How to print this series?(1 \n 2 3 \n 4 5 6 \n 7 8 9 10... ... ...)
body: <p>I am trying to print the following series:<br> 1<br> 2 3<br> 4 5 6 <br> 7 8 9 10 <br>... ... ...<br>The input of my program contains a single integer <b>n</b>, which determines the number of lines to print.</p>
  
  <p>I've tried to code it but got the following output:<br>
  1<br>2 3<br>3 4 5<br>4 5 6 7<br>... ... ...</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
      int n,i,j,t,m;
      scanf("%d", &amp;n);
      for(i=1;i&lt;=n;i++)
      {
          for(j=i,t=1;t&lt;=i;j++,t++)
          {
              printf("%d ",j);
          }
          printf("\n");
      }
  }
  </code></pre>