i wrote the code but i dont get max value how to find max value
#include <stdio.h>
int main(void)
{
        double temp[0];
        float max,min;
        float i;
        short c,j,k;
        float sum=0;
        float nu[c];
        printf("Number of values :");
        scanf("%f",&i);
        for (c=1;i>=c;c++)
        {
          printf("values=");
          scanf("%f",&nu[c]);
          nu[c]=temp[0];
          for (j = 0; i>=j; j++)
          {
             if (temp[0]> nu[c])
             {
             //      nu[c]=temp[0];
                  max = temp[0];
             }
        }
        sum = sum + nu[c];
      }
      printf("sum = %f \n",sum);
      printf("maximum value = %f\n",max);
}