class Example01{
public static void main (String[] arg){
double a[]=new double[100];
double sum=0;
double aver;
for(int i=0;i,a.length;i++){
a[i]=Math.random()*1000;
}
for(int i=0;i,a.length;i++){
sum=sum+a[i];
}
aver=sum/(a.length);
System.out.println(aver)
}
}