/************************************************************************************ * Section 15 * M/c No : M * Roll No : 18CS100XY * Names : Soumyajit Dey, Aritra Hazra * Assignment No : 1b * Description : Program to find arithmatic-mean, harmonic-mean and standard-deviation *************************************************************************************/ #include #include int main() { double a, b, c, d, e; double am, hm, sd; printf("Enter Five Positive Real Numbers: "); scanf("%lf %lf %lf %lf %lf", &a, &b, &c, &d, &e); am = (a + b + c + d + e) / 5; hm = 5 / (1/a + 1/b + 1/c + 1/d + 1/e); sd = sqrt( (a*a + b*b + c*c + d*d + e*e)/5 - (am * am) ); printf("AM = %lf, HM = %lf, SD = %lf\n", am, hm, sd); return 0; }