Include <iostream>
#include <string>
#include <cmath>
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main()
{
float misura,somma,ea,er,max,min,med,erpercent;
max=0;
min=0;
int i=0;
do{
cout<<"inserisci la misura \n";
cin>>misura;
somma+=misura;
i++;
if(misura>max and misura!=0){
max=misura;}
if(misura<min and misura!=0){
min=(misura);}
}while (misura!=0 );
med=somma/(i-1);
cout<<"il valore medio e: "<< med;
cout<< "\n"<<"il valore massimo e: " <<max;
cout<< "\n"<<"il valore minimo e: " <<min;
ea=(max-min)/2;
cout<<"\n"<<"l'errore assoluto e "<< ea;
er=ea/med;
cout<<"\n"<<"l'errore relativo e "<< er;
erpercent=er*100 ;
cout<<"\n"<<"l'errore relativo in percentuale e "<< er<<"%";
return 0;
}