Current location - Training Enrollment Network - Mathematics courses - C math library source code
C math library source code
# include & ltstdio.h & gt

Floating? Fun (gone with the wind? r,float? H, floating? *s)

{ * s = 2 * 3. 14 16 * r *(r+h);

Return? 3. 14 16 * r * r * h;

}

int? Master ()

{floating? r、h、s、v;

scanf("%f%f ",& ampr & amp; h);

v=fun(r,h,& amps);

Printf ("surface area =%.3f\nvolume =% .3f \ n", s, v);

Return? 0;

}