// programme calcul moyenn
//fait par:  Bellil Ines et Benhamdi Asma

class Ines1 {
 public static void main(String[]args){
int i;
int N=4;
double somme=0;
double x[ ]= new double [4];

x[0]=3.4;
x[1]=2.1;
x[2]=1.0;
x[3]=6.8;
double moyenne=0;


for ( i=0; i<4; i=i+1) 
{ 
somme=somme+x[i];
 }
System.out.println ("somme="+somme);

moyenne=somme/N;
System.out.println ("moyenne="+moyenne);

}
}