#include<stdio.h> #include <math.h> int main() { int n; const double pi=acos(-1); double a,b; while(scanf("%d",&n)!=EOF) a=sin(n*pi/180); b=cos(n*pi/180); printf("%.2f\n%.2f\n",a,b); return 0; }
原文地址:https://www.cnblogs.com/chenlong991223/p/9743214.html
时间: 2024-11-14 01:32:46