编写C语言程序求35度角的正弦余弦正切余切 include Kelaze 9级 include<;stdio.h>;#include<;conio.h>;#include<;math.h>;int main(){ double x;x=35;printf(\"余弦值是:\");printf(\"%f\\n\",cos(x/180*M_PI));。
用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语言程序写出,输入一个角度值,计算正弦余弦,高手帮忙看看错误 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;最好改。