用c语言程序写出,输入一个角度值,计算正弦余弦,高手帮忙看看错误 /*Note:YourchoiceisCIDEincludestdio.hincludemath.hdefinePI3.1415926/把;去掉voidmain(){definePI3.1415926/把;去掉,放到前面2113去doublea,b,c,d;最好改为5261double型,因为正余弦4102函数的返回值是double型,e没用到,去1653掉printf(\"请输入角度值:\");scanf(\"%lf\",&a);将%d改为%lfb=PI/180.0*a;为啥不行呢?c=sin(b);d=cos(b);printf(\"正弦值为:%.4lf\\n\",c);printf(\"余弦值为:%.4lf\",d);return0;main函数无返回值,这里不需要}
c语言中如何用指向函数求正余弦的值? include<;stdio.h>;#include<;math.h>;void main(){ double x,term,sum,x2;int i;printf(\"请输入弧度x的值:\");scanf(\"%lf\",&x);x2=x*x;sum=1.0;term=1.0;for(i=2;i;i=i+2){ 。
用c语言程序写出,输入一个角度值,计算正弦余弦,高手帮忙看看错误 Note:Your choice is C IDE*/include\"stdio.h\"#include\"math.h\"#define PI 3.1415926/把;去掉void main(){/define PI 3.1415926/把;去掉,放到前面去 double a,b,c,d;最好改。