#include <stdio.h>
#include <math.h>
int main( ) {
float m, media, sigma, p;
int vetor[ 10 ] ;
media = 0 ;
m = 0 ;
sigma = 0 ;
p = 0 ;
int i;
for ( i = 0 ; i < 10 ; i++ ) {
}
for ( i = 0 ; i < 10 ; i++ ) {
m = m + vetor[ i] ;
}
media = m / 10.0 ;
for ( i = 0 ; i < 10 ; i++ ) {
p
= p
+ pow ( ( vetor
[ i
] - media
) , 2 ) ; }
printf ( "Resultado d = %.2f\n " , sigma
) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpewogICAgZmxvYXQgbSwgbWVkaWEsIHNpZ21hLCBwOwogICAgaW50IHZldG9yWzEwXTsKICAgIG1lZGlhID0gMDsKICAgIG0gPSAwOwogICAgc2lnbWEgPSAwOwogICAgcCA9IDA7CiAgICBpbnQgaTsKCiAgICBmb3IoaSA9IDA7IGkgPCAxMDsgaSsrKXsKICAgICAgICBwcmludGYoIkRpZ2l0ZSB1bSBuw7ptZXJvOiAiKTsKICAgICAgICBzY2FuZigiJWQiLCAmdmV0b3JbaV0pOwogICAgfQogICAgZm9yKGkgPSAwOyBpIDwgMTA7IGkrKyl7CiAgICAgICAgbSA9IG0gKyB2ZXRvcltpXTsKICAgIH0KICAgIG1lZGlhID0gbSAvIDEwLjA7CiAgICBmb3IoaSA9IDA7IGkgPCAxMDsgaSsrKXsKICAgICAgICBwID0gcCArIHBvdygodmV0b3JbaV0gLSBtZWRpYSksMik7CiAgICB9CiAgICBzaWdtYSA9IHNxcnQocC8oMTAtMSkpOwogICAgcHJpbnRmKCJSZXN1bHRhZG8gZCA9ICUuMmZcbiIsIHNpZ21hKTsKCiAgICByZXR1cm4gMDsKfQo=