Prog#064: Mean of 10 nos - Integer Array

/* 
Program#64
Mean of 10 nos - Integer Array
*/

#include <stdio.h>
main(){
int i=0,a[10];
int s=0;
float mean;

while(i<10){
scanf("%d",&a[i]);
i=i+1;
}
i=0;
while(i<10){
s=s+a[i];
i=i+1;
}
mean=s/10.0;
printf("\n Mean=%f",mean);
}