Prog#115: Average of 10 nos

/* 
Program#115
Average of 10 nos
*/

#include <stdio.h>
int main(){
int i,n,s;
float avg;
s=0;
for(i=0;i<10;i++)
{
scanf("%d",&n);
s+=n;
}
avg=(float)s/10;
printf("\n %f",avg);
}