- Today I only did a meaningful thing,which was a mathermatic speech.
- The Data scientist is an old man(Tugluk·Abdurajak),he is so amiable. Thanks for his speech.
- It took me two and half hours ,but it's worth watching.
#include<stdio.h>
#include<math.h>
int main()
{
double s = 0, s1=0, x[10];
printf("Please input 10 numbers:\n");
for (int i = 0; i < 10; i++)
{
scanf("%f", &x[i]);
s1 += x[i];
}
s1 = s1 / 10;
for (int i = 0; i < 10; i++)
{
s = s + ((x[i]-s1) *( x[i]-s1));
}
s = s / 10;
s = pow(s, 0.5);
printf("The Variance is %lf", s);
return 0;
}
The only failure there is is the failure to try