title: I need 10 result with loop but I can't make it I can only get 4 result how I can fix my loop
body: <pre><code>struct nokta
  {
    double x,y;
  } nokt[5] = {{5,-2},{-3,-2},{-2,5},{1,6},{0,2}};
  
  struct daire
  {
    int c;
    double R;
  };
  
  int main()
  {
    int i,j;
    double distance[30];
   
    for(i=0; i&lt;4; i++)
    {
      distance[i]=sqrt((pow(nokt[i].x+nokt[i+1].x,2)+pow(nokt[i].y nokt[i+1].y,2)))
    }
  
    for(i=0;i&lt;4;i++)
    {
      printf(&quot;_%lf&quot;,distance[i]);
    }
    return 0;
  }
  </code></pre>