title: How to add other elements to an array[size] (index 0 is already set)
body: <p>im really new to programming, c is my first language</p>
  <p>i want to create an array with a size set by scanf
  it should start with startValue (second scanf) and then printf the rest of the array but with startvalue+1</p>
  <p>so for example if i type in:<br />
  3 // --&gt; size of the array <br />
  4 // --&gt; my starting point/startValue</p>
  <p>the programm should give me:
  4
  5
  6</p>
  <p>after several hours of watching videos/reading online and trial and error i just dont know how to solve this problem :( i really appreciate your help thank you</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
      int size;
      int startValue;
      scanf(&quot;%d\n %d&quot;, &amp;size, &amp;startValue);
  
      int array[size];
      array[0] = startValue;
  
      for(int i = 0; i&lt;size; i++) {
          printf(&quot;%d\n&quot;, array[i]);
      }
  
      return 0;
  }
  
  </code></pre>