正在加载图片...
maine (0 float X, S, t; int n=l scanf ("%f,, &x) X=2*3.1415926*x/360: s=x t=x do in=n+1 X“X (2*n-2)*(2大n-1)); stt: while(t>1e-6) printf ("SIN (%f)=%3f\n",X, S);main() { float x, s, t; int n = 1; scanf("%f",&x ); x = 2 * 3.1415926 * x / 360; s = x; t = x; do { n = n + 1; t = t * (-1) * x * x / (( 2 * n - 2)*(2*n - 1)); s = s + t ;} while ( t > 1e-6 ); printf(" SIN(%f)= %.3f \n ", x ,s); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有