26.零起点学算法22——求正弦和余弦
2021-06-17 07:03
标签:col double eof int ble bsp include style turn 26.零起点学算法22——求正弦和余弦 标签:col double eof int ble bsp include style turn 原文地址:https://www.cnblogs.com/Estwind/p/9721498.html#include
const double pi=acos(-1);
double a,b;
while(scanf("%ld",&s)!=EOF)
{
a=sin(s*pi/180);
b=cos(s*pi/180);
printf("%.2f\n%.2f\n",a,b);
}
return 0;
}
上一篇:Spring 注解<context:annotation-config> 和 <context:component-scan>的作用与区别
下一篇:[Spring]Spring注解