title: Express interval in C programming
body: <p>How can I express that <code>K=1:N</code> i.e between <code>1</code> to <code>N</code>  in C programming?
  I am new to C.   </p>
  
  <pre><code>#include &lt;math.h&gt;
  #include &lt;stdio.h&gt;
  
  int main(){
    int N=length(x);
    float K=1:N;  
    printf("%f", K);
  };
  </code></pre>