find the largest,smallest,sum and ave of an array that stops at 0 in C : enter code hereso basically i have to find the largest, smallest, sum, average 

ive gotten the average and sum to work buut not find the largest smallest, the average o the positive and the negative numbers. the array stops when 0 is pressed  

    #include <stdio.h>
    
    int main()
    {
        int c=0,n, array[100],large,small;
        float sum = 0;
      //for (c=0;c<n;n++){
        do{
    
        c++;
        printf("\nEnter number:");
        scanf("%d",&array[c]);
        sum+=array[c];
       }while(array[c]!=0);
    
    if(array[c]>large){large=array[c];}
    if(array[c]<small){small=array[c];}
    if(array[c]==0){
       printf("\n Sum = %.2f\n", sum);
       printf("\n Avergae = %.2f", sum/(c-1));
        printf("\n Largest %d",large);
    
    
      }
    
    
       return 0;
    }

