The minimum part shows error

//minimum,max and average of an array

#include<stdio.h>

int main()

{

int n[10],t,s;

float sum=0;

printf("enter numbers");

for(int i=0;i<10;i++)

    scanf("%d",&n[i]);

 for(int i=0;i<9;i++)

 {

  if(n[i+1]>=n[i])

  t=n[i+1];

  if(n[i]>=n[i+1])

  s=n[i+1];

 }

 for(int i=0;i<10;i++)

 sum=sum+(float)n[i]/10;

printf("minimum is %d\n ",s);

printf("max is %d\n ",t);

printf("average is %f\n",sum);

}