样例输入:-390
样例输出:-0.50
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
#define PI 3.14159265
int main(void)
{
double result,y;
for (int i = 0; i <= 359; i++)
{
y = i * PI / 180;//角度化为弧度
result = sin(y);
printf("sin(%d°)= %.2f\n", i, result);
}
int n;
scanf("%d",&n);
double m = n * PI / 180;
double result1 = sin(m);
printf("sin(%d)=%lf",n,result1);
return 0;
}