#include <stdio.h>
#include <stdlib.h>
#include <math.h>//注意头文件的使用
int main()
{
double answer1,answer2;
int angle;
scanf("%d",&angle);
answer1=sin(angle*3.14/180);//注意这个地方当输入角度的时候,要进行转换
answer2=cos(angle*3.14/180);
printf("%.1lf %.1lf ",answer1,answer2);
}
sin与
最新推荐文章于 2025-01-06 00:15:00 发布