#include<stdio.h> #include<math.h>int main() { int s; 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; }
原文地址:https://www.cnblogs.com/Estwind/p/9721498.html
时间: 2024-11-06 13:26:17