title: finding sum,min,max with array
body: <p>Write a program that inputs number of values then inputs these values (double type) one by one in a loop and finally outputs their sum, the maximum value and the minimum value. </p>
  
  <p>I write the code for this assignment but i got error </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
          float a;
          float i;
          short c;
          float sum;
          float nu[];
  
          i=nu[];
  
            printf("Number of values :");
            scanf("%f",&amp;i);
  
          for (c=1;i&gt;=c;c++)
          {
            printf("values=");
            scanf("%f",&amp;nu[c]);
  
                  sum = sum + nu[c];
          //      printf("Sum = %f\n",sum);
          }
  
          printf("sum = %f \n",sum);
  //      printf("Number of values :");
  //      scanf("%f",&amp;i);
  }
  </code></pre>
  
  <p>error is number.c: In function ‘main’:
  number.c:9: error: array size missing in ‘nu’
  number.c:11: error: expected expression before ‘]’ token</p>